|
|
back to boardI know what is the answer of #10 So, i've found the number 22 (I don't know how is your programs but my program was printing -12 (minus one and two)) cause i didn't have "halt" after "write("-1");" and after this my program was continueing and printing the number 2 also I DON'T KNOW BUT MAYBE IT WILL HELP YOU GOOD LUCK!! :) Edited by author 15.06.2008 19:51 Edited by author 15.06.2008 19:52 Re: I know what is the answer of #10 Yes! it helps mi! thanks Re: I know what is the answer of #10 Posted by Rashad 8 Nov 2010 19:13 My code outputs 2 not -12. But i am getting WA in test #10. Please help. :(( Re: I know what is the answer of #10 I hate this f*cking excercise.. it is second day I am trying to solve ... now please help me here is the input and output, please be careful to notice something ........ what is wrong here??? first number is my input and the second is output... heeeelp mikael@ubuntu:~/Desktop$ ./xx 1 1 mikael@ubuntu:~/Desktop$ ./xx 0 10 mikael@ubuntu:~/Desktop$ ./xx 2 2 mikael@ubuntu:~/Desktop$ ./xx 3 3 mikael@ubuntu:~/Desktop$ ./xx 4 22 mikael@ubuntu:~/Desktop$ ./xx 5 5 mikael@ubuntu:~/Desktop$ ./xx 6 23 mikael@ubuntu:~/Desktop$ ./xx 8 24 mikael@ubuntu:~/Desktop$ ./xx 9 33 mikael@ubuntu:~/Desktop$ ./xx 10 25 mikael@ubuntu:~/Desktop$ ./xx 20 45 mikael@ubuntu:~/Desktop$ ./xx 25 55 mikael@ubuntu:~/Desktop$ ./xx 30 56 mikael@ubuntu:~/Desktop$ ./xx 45 59 mikael@ubuntu:~/Desktop$ ./xx 60 256 mikael@ubuntu:~/Desktop$ ./xx 105 357 mikael@ubuntu:~/Desktop$ ./xx 108 269 mikael@ubuntu:~/Desktop$ Re: I know what is the answer of #10 Bro., look this answers and compare with yours: 4 -> 4 (not 22) 9 -> 9 (not 33) |
|
|