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
1639
. Chocolate 2
Solved in O(1).
Posted by
Marginean Ciprian
31 Oct 2008 20:48
:D
Re: Solved in O(1).
Posted by
olexienko
22 Jan 2017 21:09
Oh, its realy easy! Just:
if ((a*b) % 2 = 0) res = "first" else res = "second";
© 2000–2024
Timus Online Judge Team
. All rights reserved.