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

Please help)
Posted by AndriyKozak 25 Sep 2018 20:43
#include <stdio.h>

int main()
{
    char a[3],b[3];
    gets(a);
    gets(b);
    int x;
    if (a[3]=='0'||a[3]=='2'||a[3]=='4'||a[3]=='6'||a[3]=='8')
        x=1;
    if (b[3]=='1'||b[3]=='3'||b[3]=='5'||b[3]=='7'||b[3]=='9')
        x=1;
   if(x==1) printf("yes");
     else printf("no");
}
Re: Please help)
Posted by Pearl 2 Oct 2018 10:10
The two codes are just two numbers, think about it this way. If I write more, the solution will be obvious and you will get nothing.