結果

提出番号 337
提出者 YagiY
言語 C++
提出日時 2017-07-15 14:56:06
問題名 (1)Odd&Even
結果 AC
点数 100%

テストケース

テストケース 結果 得点 実行時間 メモリ使用量
1 AC 100% 1ms 7984KB
2 AC 100% 2ms 8320KB
3 AC 100% 2ms 7520KB

ソースコード

#include "iostream"
#include "string"
using namespace std;

int main() {
	int a, x;
	cin >> x;
	a = x % 2;
	
	if (a != 0){
		cout << "Odd" << endl;
	}else if (a == 0){
		cout << "Even" << endl;
	}else {
		cout << "Error" << endl;
	}

}