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

what s wrong here ? WA2
Posted by Tom 4 Aug 2011 22:58
i dont get it at all...it looks good though. at least to me
help pls

#include<iostream>

using namespace std;

int main(){

    int m,n,a;
    cin >> m >> n;
    a=(m*n)%2;
    if(a==0) cout << "[:=[first]";
    else if(a==1) cout << "[second]:=]";
}
Re: what s wrong here ? WA2
Posted by Tom 4 Aug 2011 23:05
ok. = mark in "[second]:=]" is in the wrong place.
should be     "[second]=:]" .      O_O - embarrassed.
always something to learn.