Code Submission Evaluation System Login

CSES - HIIT Open 2018

HIIT Open 2018

Contest start:2018-05-26 11:00:00
Contest end:2018-05-26 16:00:00

Task list | Submit code | Submissions | Messages | Scoreboard | Statistics


History
2018-05-26 11:44:22
Task:Alien Invasion
Sender:HIIT AND RUN
Submission time:2018-05-26 11:44:22
Status:READY
Result:ACCEPTED

Show test data

Compiler report

input/code.cpp:7:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main () {
       ^

Code

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

main () {
    ll a;
    
    cin >> a;
    
    ll s = ll(sqrt(a));
    
    if (s*s == a) {
        cout << "odd" << endl;
    } else {
        cout << "even" << endl;
    }
}