1 solutions
-
0
C++ :
#include<bits/stdc++.h> using namespace std; long long a,b,ji,ou; int main() { //freopen("4.in","r",stdin); //freopen("4.out","w",stdout); cin>>a>>b; if(a%2==0) ou++; else ji++; if(b%2==0) ou++; else ji++; if(ji==1) cout<<"ji "; else cout<<"ou "; if(ji==2) cout<<"ji"; else cout<<"ou"; return 0; } /* 奇数+奇数=偶数 奇数+偶数=奇数 偶数+偶数=偶数 奇数*偶数=偶数 奇数*奇数=奇数 偶数*偶数=偶数 */
- 1
Information
- ID
- 727
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 9
- Tags
- # Submissions
- 13
- Accepted
- 3
- Uploaded By