chenxi16

导航

2020年4月15日 #

PAT (Basic Level) Practice (中文) 1019 数字黑洞

摘要: 1 #include<stdio.h> 2 #include<string.h> 3 #include<algorithm> 4 using namespace std; 5 char n[5]; 6 bool cmp(char a,char b){//降序 7 return a>b; 8 } 9 阅读全文

posted @ 2020-04-15 11:17 chenxi16 阅读(130) 评论(0) 推荐(0) 编辑

PAT (Basic Level) Practice (中文) 1018 锤子剪刀布

摘要: 1 #include<stdio.h> 2 3 // c:0 j:1 b:2 0:胜 1:平 2:负 4 int n,p1[3],p2[3],num[3]; 5 6 void read(); 7 void deal(int x,int y); 8 int change(char a); 9 char 阅读全文

posted @ 2020-04-15 10:02 chenxi16 阅读(129) 评论(0) 推荐(0) 编辑