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 1877. Bicycle Codes

Why my code does not work? Any sample input to think?
Posted by Hissain 4 May 2013 23:37
#include<stdio.h>

int main(){
int m,n;
while(scanf("%d %d",&m,&n) == 2){
 if(m == 0 || n == 1){
  printf("yes\n");
 }else{
  printf("no\n");
 }
}
return 0;
}
Re: Why my code does not work? Any sample input to think?
Posted by Declow 5 May 2013 00:42
Why do you use "while" for reading?
Re: Why my code does not work? Any sample input to think?
Posted by SuperLight 5 May 2013 00:53