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

what is it TEST3
Posted by Daniel 22 Oct 2011 16:31
what is it TEST3
Re: what is it TEST3
Posted by Lifanov Aleksey 26 Oct 2011 15:22
i'm think test 3 incorrect.

if use this method for read input data we got WA
scanf("%s1 %s2",s1,s2);
S1 = (s1[0]-'0')*1000 + (s1[1]-'0')*100 +(s1[2]-'0')*10 +(s1[3]-'0')*1;
S2 = (s2[0]-'0')*1000 + (s2[1]-'0')*100 +(s2[2]-'0')*10 +(s2[3]-'0')*1;

if use
scanf("%d %d",&S1,&S2);
we has CA