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

×

Enormous Input Test ( INTEST)

here is a link of my solution...

http://www.codechef.com/viewsolution/3651260

when i am running this code on ideone.com it is giving count of divisible number by k actual count + 1 ....means if ans is count =4 then it is giving count =5....so i hav submitted my solution printing count-1.....can anyone help to tell me how it is coming...thanks

asked 28 Mar '14, 19:07

surajtripathi's gravatar image

3★surajtripathi
56339
accept rate: 0%


It happens because once you enter n and k and then press enter ,the first string which goes inside fread is '\n' and hence it increments the count by 1.

link

answered 28 Mar '14, 23:23

vermashubhang's gravatar image

5★vermashubhang
1.5k11025
accept rate: 23%

thanks bro........ :D

(28 Mar '14, 23:39) surajtripathi3★

Your Welcome !

(28 Mar '14, 23:40) vermashubhang5★

Why can't I run the solution in Codeblocks?

It is getting only one input from me.

But, runs fine with online ide ?

link

answered 26 Sep '15, 05:08

sathyacse67's gravatar image

1★sathyacse67
1
accept rate: 0%

my program is showing this error.

Main.java:2: error: class enormous is public, should be declared in a file named enormous.java public class enormous ^ 1 error

do you know how to solve it? plz help

link

answered 03 Jan '16, 21:23

mac2208's gravatar image

1★mac2208
1
accept rate: 0%

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:

×2,718
×49

question asked: 28 Mar '14, 19:07

question was seen: 1,892 times

last updated: 03 Jan '16, 21:23