ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1295. Crazy Notions

What is TEST#18
Posted by Bunyodbek Bobodjanov (TATU UF) 31 Oct 2009 09:35
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
Posted by Muhabbat 31 Oct 2009 10:00
I have the problem like yours. I have got WA in TEST#18 too.
Re: What is TEST#18
Posted by Sergey Lazarev (MSU Tashkent) 31 Oct 2009 12:10
n=25. Answer is 2.
Re: What is TEST#18
Posted by Bunyodbek Bobodjanov (TATU UF) 3 Nov 2009 15:13
Спасибо за тест.