formygloryandpeacefulday  

2024年11月20日

摘要: include include<string.h> include<windows.h> using namespace std; int updata_score(struct student* p, int n, int num, int course, int score); struct s 阅读全文
posted @ 2024-11-20 22:56 残夏便是结局 阅读(12) 评论(0) 推荐(0)

2024年11月19日

摘要: include include<string.h> include<windows.h> using namespace std; struct student { char name[10]; int c, math, english; double average; }; int main() 阅读全文
posted @ 2024-11-19 22:17 残夏便是结局 阅读(27) 评论(0) 推荐(0)
 
摘要: include include<string.h> include<windows.h> using namespace std; struct student { char name[10]; int c, math, english; double average; }; int main() 阅读全文
posted @ 2024-11-19 21:54 残夏便是结局 阅读(17) 评论(0) 推荐(0)

2024年11月18日

摘要: include using namespace std; define max 20 int main() { int a[max][max]; int n; cin >> n; int temp; for (int i = 0; i < n; i++) { for (int j = 0; j < 阅读全文
posted @ 2024-11-18 22:14 残夏便是结局 阅读(16) 评论(0) 推荐(0)

2024年11月17日

摘要: include using namespace std; define max 46 int marktwin(int a, int b); int main() { int n, a[max]; int count = 2; cin >> n; a[0] = 1; a[1] = 1; cout < 阅读全文
posted @ 2024-11-17 22:44 残夏便是结局 阅读(6) 评论(0) 推荐(0)

2024年11月16日

摘要: include using namespace std; define max 80 void zip(char* p); int main() { char line[max]; cout << "Input the string"; cin>>line; zip(line); puts(line 阅读全文
posted @ 2024-11-16 23:05 残夏便是结局 阅读(6) 评论(0) 推荐(0)

2024年11月15日

摘要: include include<stdlib.h> using namespace std; int main() { int n, sum, i, * p; cout << "enter n" << endl; cin >> n; if ((p = (int*)calloc(n, sizeof(i 阅读全文
posted @ 2024-11-15 23:57 残夏便是结局 阅读(8) 评论(0) 推荐(0)

2024年11月14日

摘要: include using namespace std; void sxh(int); int ipow(int x, int n)//平方的函数; { int i, p = 1; for (i = 1; i <= n; i++) { p = p * x; } return p; } int mai 阅读全文
posted @ 2024-11-14 21:23 残夏便是结局 阅读(13) 评论(0) 推荐(0)

2024年11月13日

摘要: include using namespace std; define max 10 void swap(int* px, int* py); void bubble(int a[], int n); int main() { int n, a[max]; int i; cout << "输入n" 阅读全文
posted @ 2024-11-13 21:16 残夏便是结局 阅读(10) 评论(0) 推荐(0)

2024年11月12日

摘要: [AHOI2021初中组] 超市购物 题目背景 AHOI2021 初中组 T1 你可以选择跳过背景部分。 春的一天,正是乍暖还寒时候,狂风乍起。小可可裹紧了单薄的外衣,往小雪家中赶去。 “今天真不是个出门的时候啊!”小可可感叹道。 “但是我还有东西要买……你就陪我去下超市吧?” 在超市里,小雪一共买 阅读全文
posted @ 2024-11-12 22:08 残夏便是结局 阅读(29) 评论(0) 推荐(0)