Title |
User |
Message |
Date Posted |
Question |
phama0662 |
Why is it that when I hand in my code and hand the same code in again, I get different marks? |
May 09, 2012 - 5:28:59 pm UTC |
Re: WHat is the number? |
jargon |
The problem is perfectly clear; read it again. |
Dec 01, 2011 - 1:26:23 am UTC |
WHat is the number? |
Srot |
What is the number that I have to guess? Do you assign a number a variable at the beginning or do i need to use Random Generator? Is the number the same each time or different (Java)? |
Nov 30, 2011 - 11:19:58 pm UTC |
Re: new here |
jargon |
Yes, you output a number at the beginning as your first guess. In addition: to flush in Java, use: System.out.flush(); (Interestingly enough, neither of the two Java solutions do this, however.) |
Nov 15, 2011 - 2:16:44 am UTC |
new here |
IsmailSultani |
do you assign a number at the beginning? or is there something else that uses flush (i dont know i use java). THanks |
Nov 15, 2011 - 1:21:36 am UTC |
Re: Re: Input outpu |
jargon |
I'm not going to tell you what they are, but I can tell you what you output. For test case #4, the TLE actually means that you've exceeded the allotted amount of guesses (you're taking 32 or more gue... |
Oct 22, 2011 - 11:49:08 pm UTC |
Re: Re: Input outpu |
superman |
Even after I start from 1, I fail on the last 2 test cases. Is there anyway I can see what those test cases are? Thanks. |
Oct 22, 2011 - 9:55:43 pm UTC |
Re: why am i getting wrong? |
Daniel |
Don't put readln, right after your flush(output). Otherwise, the interactive program's output just gets dumped. |
Oct 22, 2011 - 9:31:51 pm UTC |
Re: Input outpu |
HelloMelloC |
Well first off, you seem to output 0 as your first guess. Remember that it can be any number between 1 and 2 billion (and only between 1 and 2 billion). |
Oct 22, 2011 - 8:56:42 pm UTC |
why am i getting wrong? |
bobbyg212009 |
|
Oct 22, 2011 - 6:57:26 pm UTC |