摘要: Codeforces 975 div2 A. Max Plus Size 点击查看代码 void solve() { int n;cin>>n; int imax1=0,imax2=0; for(int i=1;i<=n;i++) { int x; cin>>x; if(i%2) imax1=max 阅读全文
posted @ 2024-10-11 09:23 manbin 阅读(30) 评论(0) 推荐(0)
摘要: Codeforces 973 div2 A:Zhan's Blender 点击查看代码 void solve() { int n,x,y; cin>>n>>x>>y; int ans=0; if(x>=y) { ans=n/y; if(n%y) ans++; } else { ans=n/x; if 阅读全文
posted @ 2024-09-27 00:30 manbin 阅读(56) 评论(0) 推荐(0)