摘要: 点击查看代码 #include<iostream> #include<string> using namespace std; int main() { string s; getline(cin,s); int len = s.length(); s[len-1] = ' '; int max=0 阅读全文
posted @ 2025-11-23 14:52 一只牛油果 阅读(0) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; int s[25][25]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { for (int j = 1; j <= i; j++ 阅读全文
posted @ 2025-11-18 20:00 一只牛油果 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; int main() { int a[100][100], b[100][100]; int n, m, k; cin >> n >> m >> k; for (int i = 0; i < n; i++) 阅读全文
posted @ 2025-11-09 16:51 一只牛油果 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<string> using namespace std; string s; int main() { int n; cin >> n; cin.ignore(); getline(cin, s); int len = s.len 阅读全文
posted @ 2025-11-09 16:22 一只牛油果 阅读(5) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<iomanip> #include<cmath> using namespace std; double arctanx(double x) { double sum=0.0; double one=x; int n=1; whi 阅读全文
posted @ 2025-10-25 17:36 一只牛油果 阅读(8) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <iostream> using namespace std; int ack(int x,int y) { if (x==0) { return y + 1; } else if (x > 0 && y == 0) { return ack(x - 1, 1); } 阅读全文
posted @ 2025-10-10 16:21 一只牛油果 阅读(9) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<cstring> using namespace std; char s[55]; char d[55]; int main() { gets_s(s); int len = strlen(s); s[len] = '\0'; d 阅读全文
posted @ 2025-09-29 19:53 一只牛油果 阅读(8) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <iostream> #include<cstring> using namespace std; int main() { char s[1005]; int cnt = 0; gets_s(s); int len = strlen(s); s[len] = '\0 阅读全文
posted @ 2025-09-19 16:28 一只牛油果 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<cstring> using namespace std; int main() { char s[105]; gets_s(s); int len = strlen(s); s[len] = '\0'; char d[105]; 阅读全文
posted @ 2025-09-19 14:54 一只牛油果 阅读(15) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<cstring> using namespace std; char s[1005]; int main () { gets(s); int len=strlen(s); s[len+1]=0x3f3f3f3f; int cnt= 阅读全文
posted @ 2025-09-08 22:33 一只牛油果 阅读(6) 评论(0) 推荐(0)