You are not logged in. Please login at www.codechef.com to post your questions!

×

same program in java submitted but in c not

i have applied same logic to attic question of june cook of it was submitted in java but when i do it in c it is not submitted...it says wrong answer. why???

asked 24 Jun '13, 16:04

madhav740's gravatar image

3★madhav740
11
accept rate: 0%


Kindly add links to your solutions.

link

answered 24 Jun '13, 16:38

dush22's gravatar image

3★dush22
614
accept rate: 0%

(24 Jun '13, 16:44) betlista ♦♦3★

In your C code, you need to add 1 to the size of the char ip[1000000] (and make it char ip[1000001]) to accomodate for the '\0' in case of a string of length 1000000.

link

answered 24 Jun '13, 16:49

dush22's gravatar image

3★dush22
614
accept rate: 0%

edited 24 Jun '13, 16:50

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×13

question asked: 24 Jun '13, 16:04

question was seen: 518 times

last updated: 24 Jun '13, 16:50