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:04:58
Task:Alien Invasion
Sender:barely div 2.8 burgeria
Submission time:2018-05-26 11:04:58
Status:READY
Result:ACCEPTED

Show test data

Code

#include <iostream>
#include <cmath>

using namespace std;

typedef long long LL;

int main(){
	LL n; cin >> n;
	LL x = sqrt(n);
	if(x*x == n){
		cout << "odd" << endl;
	} else cout << "even" << endl;
}