摘要: ## [题目链接](https://acm.ecnu.edu.cn/contest/673/statements/) 因为都是有[官方题解](https://olencer.github.io/docs/社会活动/2023acm/四川省赛题解.pdf)的,咱这个蒟蒻就在记录一下赛时通过以及后来补得一 阅读全文
posted @ 2023-06-26 21:46 Ke_scholar 阅读(236) 评论(0) 推荐(0) 编辑
摘要: # [A. 选择 ](https://acm.ecnu.edu.cn/contest/665/problem/A/) **多造几组数据可以发现** ​ **$dp[n] = dp[n / 2] + 1$.** **假如一个序列为$\{1,2,\cdots,n\}$,那我们从$n/2$后都减去$n/2 阅读全文
posted @ 2023-06-26 20:57 Ke_scholar 阅读(36) 评论(0) 推荐(0) 编辑
摘要: A. Programming Contest 签到题. 输入输出读完应该就懂了: 从y1枚举到y2,若枚举的年份不在停办年份里则答案加一 void solve() { int n,m; cin >> n; vector<int> a(N),year(N); cin >> m; for(int i = 阅读全文
posted @ 2023-06-26 17:28 Ke_scholar 阅读(9) 评论(0) 推荐(0) 编辑