ENG
RUS
Timus 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
1214
. Strange Procedure
YoD
What is wrong?...
[1] // Problem
1214. Strange Procedure
28 Mar 2005 19:11
program Project1;
VAR
x, y : longint;
begin
readln(x, y);
if ((x mod 2 = 0) or (y mod 2 = 0)) and (x > 0) and (y > 0) then
writeln(y, ' ', x)
else
writeln(x, ' ', y);
end.
YoD
Re: What is wrong?...
// Problem
1214. Strange Procedure
28 Mar 2005 19:14
Oh... I have found my foolish error...
© 2000–2026
Timus Online Judge Team
. All rights reserved.