|
|
back to boardWhat is TEST#18 I can't understand Why I got "Wrong Answer" in TEST#18......? Give me some tests !!!!! This is my code.--- int n = in.nextInt(); boolean f =true; if((n+1)%4==0){ System.out.print("2"); f = false; } else if(n%4==0) { System.out.print("0"); f = false; } if(f) System.out.print("1"); Re: What is TEST#18 I have the problem like yours. I have got WA in TEST#18 too. Re: What is TEST#18 n=25. Answer is 2. Re: What is TEST#18 Спасибо за тест. |
|
|