|
|
back to boardShow all messages Hide all messagesI 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"); I have the problem like yours. I have got WA in TEST#18 too. |
|
|