合集-暂存

摘要:#include<stdio.h> double dfs(double n, double n1, double n2, double x) { if (n < (n1 + x) && n< (n2 + x)&& n >0 ) return n; double ret1 = dfs(n - (n1 阅读全文
posted @ 2024-10-24 21:18 某朝 阅读(24) 评论(0) 推荐(0)
摘要:#include<iostream> #include<string> using namespace std; const int N = 10010; //A 65 0 int a[N]; string v[510]; int Hash(const int* Key, int TableSize 阅读全文
posted @ 2024-10-30 21:47 某朝 阅读(9) 评论(0) 推荐(0)
摘要:第1题(教材第10章“编程练习”的第3题): #include <stdio.h> #define N 110 int a[N]; int main() { int maxx = -10000; int n; scanf("%d", &n); for (int i = 0; i < n; i++) 阅读全文
posted @ 2024-11-04 22:17 某朝 阅读(17) 评论(0) 推荐(0)
摘要:c++能通过,c wrong #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n; while (cin >> n) { vector<int> odd, 阅读全文
posted @ 2024-11-16 15:33 某朝 阅读(11) 评论(0) 推荐(0)
摘要:#include<iostream> #include<cstring> #include<algorithm> #include<queue> using namespace std; typedef pair<int, int>PII; const int N = 110; int n, m; 阅读全文
posted @ 2024-11-28 17:36 某朝 阅读(23) 评论(0) 推荐(0)
摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> #define inf 0x3f3f3f typedef struct { char id[50]; char name[50]; char gende 阅读全文
posted @ 2024-11-30 19:06 某朝 阅读(21) 评论(0) 推荐(0)
摘要:define _CRT_SECURE_NO_WARNINGS include<stdio.h> include<SDL.h> include<SDL_ttf.h> include<SDL_image.h> include using namespace std; int main(int argc, 阅读全文
posted @ 2025-03-13 14:55 某朝 阅读(7) 评论(0) 推荐(0)