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 1433. Diamonds

WA on test #11
Posted by Adil Aliev [BSU, INF-11] 26 Feb 2006 20:12
My algorithm is simple
I read both lines.
Then i count for r,g,b,y counts on every line. If they are equal(r=r1,g=g1,b=b1,y=y1) then i print equal.
But on #11 test gives WA
Re: WA on test #11
Posted by Dr.Korbin 12 Mar 2006 18:49
Algorithm is wrong, cuz if the first tetrahedron is "RGBY" and the second is "RGYB", then tetrahedrons are symmetrical but not equal (sorry for my bad english :) )