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]>
阅读全文
摘要:代码: #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--;
阅读全文
摘要:代码: #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;//
阅读全文
摘要:#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]
阅读全文