03 2025 档案

摘要:Atcoder beginner contest 396(ABCD,补E) A:模拟即可 #include<bits/stdc++.h> #define N 1005 #define mod 998244353 using namespace std; typedef long long ll; v 阅读全文
posted @ 2025-03-10 11:01 graspppp 阅读(2) 评论(0) 推荐(0) 编辑
摘要:atcoder beginner contest 394 (ABCD补E) A:模拟 B:模拟 C:小模拟 idea:根据样例WWA,发现更新第一个WA为AC时,序列变为WAC,此时又出现一个WA,再次更新为ACC,所以每次找到WA时,往前更新W为AC即可 #include<bits/stdc++. 阅读全文
posted @ 2025-03-07 17:30 graspppp 阅读(4) 评论(0) 推荐(0) 编辑
摘要:atcoder beginner contest 395 赛时ABC,赛后DEF(希望cf灰名有朝一日能稳定4-5题) A :直接模拟 B:同上 C:一个map存出现次数,再用一个数组存一个数上一次出现的次数,ans = min(ans, i - lastnumber[a[i]]+1); ```#i 阅读全文
posted @ 2025-03-06 09:38 graspppp 阅读(23) 评论(0) 推荐(0) 编辑