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 1876. Centipede's Morning

WA 12
Posted by Kirill_Khapov 26 Apr 2014 10:13
#include <iostream>
using namespace std;
main()
{
    int a, b;
    cin >> a >> b;
    if (39+2*a>a+2*b) cout << 39+2*a;
           else cout << 40+2*b;
}

my code is wrong :CC
where is error?

Edited by author 26.04.2014 10:14
Re: WA 12
Posted by Kirill_Khapov 26 Apr 2014 10:15
I found my error :D