竞赛
考级
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if (n%2==0)cout<<"even"; else cout<<"odd"; return 0; }
Dream
这样也行,建议试试: #include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; cout<<(n % 2 == 0 ? "even" : "odd")<<"\n"; return 0; }
常皓の阳(•-•)
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%2==0) cout<<"even"; else cout<<"odd"; return 0; }
༺ཌༀ٩( 'ω' )و ༀད༻
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if(n%2==0) { cout << "even"; } else { cout << "odd"; } return 0; }
权威
#include <iostream> using namespace std; int main(){ int n; cin >> n; if(n%2==1){ cout << "odd"; }else{ cout << "even"; } return 0; }
156****7795
majmDZB
别来下蛋
黑客_复仇者_ZDZL _大奶龙
不太聪“铭”
#include<iostream> using namespace std; bool **(int n){ if(n%2==0){ return true; }else{ return false; } } int main(){ int n; cin>>n; if(**(n)){ cout<<"even"; }else{ cout<<"odd"; } return 0; }
周瑜大王
(悲
聪明的人类📬📬📬
「欢愉」花火
复仇者_帅童
acgoacgo
suzifeng
优先取个位 位运算 三目运算符
AC是最好的
136****4819
yh26zhuenaf
n = int(input()) if n%2==0: print('even') else: print('odd')
踢足球的Rapper
TN Hacker
共98条