10 2024 档案

摘要:#include <bits/stdc++.h> using namespace std; string a,b; bool f(){ if(a.size()>b.size()){ return true; }else{ for(int i = 0;i<a.size();i++){ if(b[i]> 阅读全文
posted @ 2024-10-24 22:13 王一行(小号) 阅读(4) 评论(0) 推荐(0) 编辑
摘要:代码: #include <bits/stdc++.h> using namespace std; int a[100005]; bool a1[100005]; int main(){ int i = 1; while(cin>>a[i]){ a1[i] = false; i++; } i--; 阅读全文
posted @ 2024-10-20 14:37 王一行(小号) 阅读(77) 评论(0) 推荐(0) 编辑
摘要:代码: #include <bits/stdc++.h> using namespace std; int main(){ int k;//K次询问 cin>>k;//输入 for(int x = 1;x<=k;x++){//循环K次 int w,s;//称重上限和金属种类 cin>>w>>s;// 阅读全文
posted @ 2024-10-19 16:02 王一行(小号) 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-10-12 19:41 王一行(小号) 阅读(6) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; int main(){ int n,x; cin>>n>>x; cout<<"小苞的桌上一共放了"<<n<<"个苹果。"<<endl; int a[n+5]; for(int i = 1;i<=n;i++){ a[i] 阅读全文
posted @ 2024-10-04 19:56 王一行(小号) 阅读(25) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示