#111: 解答


s219 (Liam)

學校 : 不指定學校
編號 : 254
來源 : [114.39.15.150]
最後登入時間 :
2025-12-13 14:27:48
t010. 110 基本認識 (比大小) | From: [118.163.232.198] | 發表日期 : 2025-12-13 11:15

#include<bits/stdc++.h>

using namespace std;

int n;

int main(){

cin >> n;

if(n >= 0 && n <= 100)

{

if(n >= 60)

cout << "pass" << endl;

else

cout << "fail" << endl;

 

if(n%2 == 0)

cout << "even" << endl;

else

cout << "odd" << endl;

}else

{

cout << "error" << endl;

}

return 0;

}

 
ZeroJudge Forum