找回密码
 立即注册
首页 业界区 业界 AtCoder Beginner Contest 417 (A-E题解)

AtCoder Beginner Contest 417 (A-E题解)

度阡舅 2025-8-3 11:06:45
比赛链接
总体总结

A,B题纯模拟
C题 公式一步转换
D题 五题里面最难的,dp预处理+二分
E题 排序+BFS
题解

A题 A Substring
[code]#include using namespace std;const int N=1e5+10;typedef long long ll;int t,n;int a,b;string s;int main(){    ios::sync_with_stdio(0);    cin.tie(0);    cout.tie(0);    cin>>n>>a>>b;    cin>>s;    for(int i=a;ia;        for(int i=0;i>b;        sort(b,b+m);        int cnt=0;        for(int i=0;i

相关推荐

2025-11-2 18:49:47

举报

懂技术并乐意极积无私分享的人越来越少。珍惜
2026-1-15 05:24:32

举报

喜欢鼓捣这些软件,现在用得少,谢谢分享!
2026-1-16 15:10:55

举报

2026-1-25 08:56:35

举报

喜欢鼓捣这些软件,现在用得少,谢谢分享!
2026-2-2 02:37:24

举报

2026-2-5 04:46:30

举报

喜欢鼓捣这些软件,现在用得少,谢谢分享!
12下一页
您需要登录后才可以回帖 登录 | 立即注册