摘要: A. Ideal Generator 面向样例编程即可 cin>>t; while(t--){ cin>>n; if(n%2==0) cout<<"No"<<endl; else cout<<"Yes"<<endl; } B. Expensive Number 考虑留最后一个非零的数字 ll t,n 阅读全文
posted @ 2025-04-09 10:29 anmoyf 阅读(123) 评论(0) 推荐(0)
摘要: A. Olympiad Date 模拟一个桶结构即可 int cnt=0; int x=3,y=1,z=2,p=1,q=1; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; for(int i=1;i<=n;i++){ if(a[i]==0&&x>=1) x--; 阅读全文
posted @ 2025-03-31 20:00 anmoyf 阅读(31) 评论(0) 推荐(0)