摘要: 点击查看代码 #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 一只牛油果 阅读(5) 评论(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 一只牛油果 阅读(4) 评论(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 一只牛油果 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<cstring> using namespace std; char s[1005]; int main () { gets(s); int len=strlen(s); int cnt=0; for(int i=0;i<=len 阅读全文
posted @ 2025-09-08 22:24 一只牛油果 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<iomanip> using namespace std; int main() { int m,n,a[10001],b[10001]; cin>>m>>n; for(int i=1;i<=m*n;i++) { cin>>a[i 阅读全文
posted @ 2025-08-31 20:45 一只牛油果 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> using namespace std; int main() { int a[10005]; int n; cin>>n; for(int i=1;i<=n;i++) { a[i]=0; } int maxx=-1; int x; for(int 阅读全文
posted @ 2025-08-31 16:57 一只牛油果 阅读(5) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <iostream> using namespace std; int main() { int n; cin>>n; int an=0,sum=0; int a[1005],b[1005]; for(int i=1;i<=n;i++) { cin>>a[i]; } 阅读全文
posted @ 2025-08-28 09:42 一只牛油果 阅读(7) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <iostream> using namespace std; int main() { bool a[10001]; int c[10001],d[10001]; int L,n; cin>>L>>n; for(int i=1;i<=n;i++) { cin>>c[ 阅读全文
posted @ 2025-08-28 09:41 一只牛油果 阅读(6) 评论(0) 推荐(0)
摘要: 开关灯 点击查看代码 #include<iostream> using namespace std; int main() { bool a[5005]; int N,M; cin>>N>>M; for(int i=1;i<=N;i++) { a[i]=1;//初始全部开启 for(int j=1; 阅读全文
posted @ 2025-08-23 20:41 一只牛油果 阅读(10) 评论(0) 推荐(0)