1 条题解
-
0
C :
#include<stdio.h> int main() { int n,i=1,a,b; scanf("%d",&n); while(i<=n) { i++; scanf("%d%d",&a,&b); if(a==b) printf("zi\n"); else printf("cheng\n"); } return 0; }
C++ :
#include<cstdio> #include<iostream> #include<cstring> using namespace std; int main() { int i,j,k; int t,n,m; int s; scanf("%d",&t); while(t--) { s=0; for(i=1; i<=2; i++) { scanf("%d",&m); s^=m; } if(s) printf("cheng\n"); else printf("zi\n"); } return 0; }
- 1
信息
- ID
- 3240
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者