合集-AT题解

摘要:A. A Substring 简单模拟即可 code #include<bits/stdc++.h> using namespace std; string s; int n,a,b; int main(){ cin >> n >> a >> b; cin >> s; for(int i = a; 阅读全文
posted @ 2025-08-05 23:41 ricky_lin 阅读(54) 评论(0) 推荐(0)
摘要:A. All Winners tag:思维题 如果说每个队有 \(1\) 个人,那么很简单,答案就是 \(1\),方案也很好构造,一个人全赢,其他人便不可能再全赢 如果说每个队有 \(2\) 个人,那么很简单,答案就是队伍个数,方案也很好构造,一个队中一个人全赢,一个人全输 我们按照上面进行扩展: 阅读全文
posted @ 2025-08-04 11:15 ricky_lin 阅读(59) 评论(0) 推荐(0)
摘要:A. I'm a teapot 简单模拟即可 阅读全文
posted @ 2025-08-18 16:14 ricky_lin 阅读(14) 评论(0) 推荐(0)
摘要:A. AtCoder Language 简单字符串判断题 code #include<bits/stdc++.h> using namespace std; string s; int main(){ ios::sync_with_stdio(false);cin.tie(0); cin >> s; 阅读全文
posted @ 2025-08-31 21:47 ricky_lin 阅读(13) 评论(0) 推荐(0)
摘要:A. Sigma Cubes code #include<bits/stdc++.h> using namespace std; int n; int main(){ cin >> n; int ans = 0; for(int i = 1; i <= n; ++i){ ans += ((i&1)? 阅读全文
posted @ 2025-09-28 16:04 ricky_lin 阅读(42) 评论(0) 推荐(0)
摘要:A. OS Versions code #include<bits/stdc++.h> using namespace std; string s; int x,y; int main(){ cin >> s; if(s[0] == 'O') x = 0; else if(s[0] == 'S') 阅读全文
posted @ 2025-10-05 07:48 ricky_lin 阅读(179) 评论(0) 推荐(0)
摘要:A. o-padding code #include<bits/stdc++.h> using namespace std; int main(){ int n; string s,pre = ""; cin >> n >> s; for(int i = s.size()+1; i <= n; ++ 阅读全文
posted @ 2025-12-23 10:46 ricky_lin 阅读(17) 评论(0) 推荐(0)
摘要:A. Feet codes #include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false),cin.tie(0); long long a,b; cin >> a >> b; cout << a 阅读全文
posted @ 2025-12-23 12:06 ricky_lin 阅读(22) 评论(0) 推荐(0)
摘要:A. chmin code #include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int N,X; cin >> N >> X; for(int i = 1; i <= N; ++i){ cin >> a[i 阅读全文
posted @ 2026-03-09 00:07 ricky_lin 阅读(13) 评论(0) 推荐(0)