摘要: #include<string.h> #include<cstdio> #include<iostream> #include<algorithm> #include<cmath> #include<string> #include<cstring> #include<vector> using n 阅读全文
posted @ 2023-08-06 19:55 徐星凯 阅读(76) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int N; scanf("%d",&N); int queue[N]; //记录每个轨道的最小序号 int queueNum=0; //轨道数量 int num; for (int i = 0; i < N; i++) { scanf( 阅读全文
posted @ 2023-08-05 21:46 徐星凯 阅读(86) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> typedef struct node{ //自己父母和孩子的编号 int master; int fa; int mu; int kidn; int kids[10]; double sum,area; }node; nod 阅读全文
posted @ 2023-08-05 17:05 徐星凯 阅读(81) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stdio.h> int main() { int clock[24], n = 0;//储存大本钟的心情指数 for (int i = 0; i < 24; i++) { scanf("%d", &clock[i]);//输入心情指数 } s 阅读全文
posted @ 2023-08-03 20:56 徐星凯 阅读(30) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> int main() { char s[10];//输入数据 scanf("%s", s); int len = strlen(s), num; //将长度为四的生日补全 if (len == 4) { num = (s[0] 阅读全文
posted @ 2023-08-02 21:14 徐星凯 阅读(59) 评论(0) 推荐(0)
摘要: #include<math.h> #include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int i; //用于循环 int k; //表示平局的间隔次数 int index; //标记平局次数 char name[2 阅读全文
posted @ 2023-08-01 21:18 徐星凯 阅读(84) 评论(0) 推荐(0)
摘要: 今天仍然在整理pta的题目,还时挺慢的,今天整理到第40题了,下午的时候雨停了,去路上练了一会车,为科目三做准备 #include <iostream> using namespace std; int main() { int n; cin >> n; double sum = 0; for(in 阅读全文
posted @ 2023-07-31 21:34 徐星凯 阅读(26) 评论(0) 推荐(0)
摘要: 快开学了,今天开始按照老师的要求整理pta上的编程题,可多了。 #include<iostream> using namespace std; int main(){ cout<<"Talk is cheap. Show me the code."<<endl; return 0; } #inclu 阅读全文
posted @ 2023-07-30 21:18 徐星凯 阅读(15) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; void boy(int high,int weight); void girl(int high,int weight); int main(){ int N; int sex;//性别 int high;//身高 i 阅读全文
posted @ 2023-07-29 20:40 徐星凯 阅读(35) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<math.h> struct prople{ int num; int name[10]; }p[10000],pmin;//pmin表示最小值 int main (void) { int i,n,sum=0; double half;//hal 阅读全文
posted @ 2023-07-28 19:18 徐星凯 阅读(19) 评论(0) 推荐(0)