摘要:
include using namespace std; int main() { int l, m; cin >> l >> m; int* begin = new int[m]; int* end = new int[m]; // 从0开始输入数据 for (int i = 0; i < m;
阅读全文
posted @ 2024-12-04 20:04
残夏便是结局
阅读(14)
推荐(0)
摘要:
include using namespace std; int main() { int l, m; cin >> l >> m; int* begin = new int[m]; int* end = new int[m]; // 从0开始输入数据 for (int i = 0; i < m;
阅读全文
posted @ 2024-11-30 23:15
残夏便是结局
阅读(10)
推荐(0)
摘要:
include using namespace std; int main() { int a,a1; int count = 0; cin >> a; a1 = a; while (a != 1) { if (a % 2 == 0) { a = a / 2; count++; } else { a
阅读全文
posted @ 2024-11-28 22:29
残夏便是结局
阅读(16)
推荐(0)
摘要:
include include using namespace std; pair<int, int> vector_addition(const pair<int, int>& v1, const pair<int, int>& v2) { int x1 = v1.first; int y1 =
阅读全文
posted @ 2024-11-27 22:57
残夏便是结局
阅读(11)
推荐(0)
摘要:
include using namespace std; int search(int list[], int n, int x); int main() { int a[10]; int i; int n,x; cin >> n; for (i = 0; i < n; i++) { cin >>
阅读全文
posted @ 2024-11-26 22:32
残夏便是结局
阅读(13)
推荐(0)
摘要:
include include using namespace std; struct Time { int hours; int minutes; int seconds; }; Time addSeconds(Time t, int secondsToAdd) { t.seconds += se
阅读全文
posted @ 2024-11-25 22:09
残夏便是结局
阅读(12)
推荐(0)
摘要:
include using namespace std; define max 20 void swap(char* p, char* q); int main() { char a[max]; int index,n; cout << "输入n" << endl; cin >> n; cout <
阅读全文
posted @ 2024-11-25 22:04
残夏便是结局
阅读(13)
推荐(0)
摘要:
include using namespace std; int main() { struct stuent { int a[5]; double all=0; } s[5]; int low[5], high[5]; double ava[5] = { 0 }; int temp; cout <
阅读全文
posted @ 2024-11-25 22:03
残夏便是结局
阅读(17)
推荐(0)
摘要:
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-22 23:50
残夏便是结局
阅读(17)
推荐(0)
摘要:
include using namespace std; define max 80 void zip(char* p); int main989() { char line[max]; cout << "Input the string"; cin>>line; zip(line); puts(l
阅读全文
posted @ 2024-11-21 21:56
残夏便是结局
阅读(12)
推荐(0)