chenxi16

导航

2020年4月14日 #

PAT (Basic Level) Practice (中文) 1017 A除以B

摘要: 1 #include<cstdio> 2 #include<cstring> 3 using namespace std; 4 const int MAXN=1001; 5 char a[MAXN]; 6 int b; 7 int q[MAXN],r[MAXN]; 8 void read(); 9 阅读全文

posted @ 2020-04-14 17:16 chenxi16 阅读(113) 评论(0) 推荐(0) 编辑

PAT (Basic Level) Practice (中文)1016 部分A+B

摘要: 1 #include<cstdio> 2 #include<cstring> 3 using namespace std; 4 const int MAXN=13; 5 char a[MAXN],b[MAXN]; 6 char da,db; 7 void read(); 8 long long in 阅读全文

posted @ 2020-04-14 16:48 chenxi16 阅读(124) 评论(0) 推荐(0) 编辑

PAT (Basic Level) Practice (中文) 1014 福尔摩斯的约会

摘要: 1 #include<cstdio> 2 #include<cstring> 3 using namespace std; 4 const int MAXN = 65; 5 char a[MAXN],b[MAXN]; 6 int main(){ 7 int day,h,m,count=0,len=0 阅读全文

posted @ 2020-04-14 15:05 chenxi16 阅读(141) 评论(0) 推荐(0) 编辑

PAT (Basic Level) Practice (中文) 1013 数素数

摘要: 1 #include<cstdio> 2 #include<cmath> 3 using namespace std; 4 5 const int MAXN = 100000000; 6 int a[MAXN]; 7 bool isprime(int x); 8 int main(){ 9 int 阅读全文

posted @ 2020-04-14 00:37 chenxi16 阅读(162) 评论(0) 推荐(0) 编辑

PAT (Basic Level) Practice (中文) 1012 数字分类

摘要: 1 #include<cstdio> 2 using namespace std; 3 int num[5],sumn[5],n; 4 void init(); 5 void read(); 6 void deal(); 7 int main(){ 8 init(); 9 read(); 10 de 阅读全文

posted @ 2020-04-14 00:13 chenxi16 阅读(113) 评论(0) 推荐(0) 编辑