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:11:46
Task:Alien Invasion
Sender:Tefyn virallinen maajoukkue
Submission time:2018-05-26 11:11:46
Status:READY
Result:ACCEPTED

Show test data

Code

#include <bits/stdc++.h>

using namespace std;

int main(){
    uint64_t n;
    cin >> n;
    uint64_t sqr = sqrt(n);
    if(n==sqr*sqr)
        cout << "odd" << endl;
    else
        cout << "even" << endl;
    return 0;
}