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 1639. Chocolate 2

correct code
Posted by Vlad 7 Jan 2012 09:24

int main(){
    int x, y;
    cin >> x >> y;
    if ((x*y-1)%2==1)
        cout << "[:=[first]";
    else cout << "[second]=:]";
    return 0;
}
Re: correct code
Posted by Dastan Yelubayev 29 Oct 2012 02:37
#include <iostream>
using namespace std;

int main ()
{
 int m,n;
cin>>m>>n;

if((m*n)%2==0)cout<<"[:=[first]";
else cout<<"[second]=:]";

return 0;
}