上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页

2023年6月12日

摘要: ## T1:[Water Station](https://atcoder.jp/contests/abc305/tasks/abc305_a "Water Station") 模拟 代码实现 ``` // C++实现 #include using namespace std; int main() 阅读全文
posted @ 2023-06-12 10:19 V_Melville 阅读(34) 评论(0) 推荐(0)

2023年6月9日

摘要: T1:Overall Winner 模拟 代码实现 #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { int n; string s; 阅读全文
posted @ 2023-06-09 21:36 V_Melville 阅读(29) 评论(0) 推荐(0)

2023年6月6日

摘要: ## T1:[数字字符串](https://jingsai.xiaohoucode.com/?id=d41e21d94f96d36125b47328d2041abb#/studentComplier?bundleId=18832fe31950e6354aa9e3ec00f26001&back=%2F 阅读全文
posted @ 2023-06-06 16:51 V_Melville 阅读(42) 评论(0) 推荐(0)

2023年6月4日

摘要: ## T1:[First Player](https://atcoder.jp/contests/abc304/tasks/abc304_a "First Player") 模拟 代码实现 ``` #include #define rep(i, n) for (int i = 0; i > n; v 阅读全文
posted @ 2023-06-04 09:12 V_Melville 阅读(130) 评论(0) 推荐(0)

2023年5月29日

摘要: ## T1:[奇怪的银行](https://jingsai.xiaohoucode.com/?id=561859e32eba42809ccf46766423fa74#/studentComplier?bundleId=1881a8b05aa08e56552d8f60000c0001&back=%2F 阅读全文
posted @ 2023-05-29 22:03 V_Melville 阅读(45) 评论(0) 推荐(0)

2023年5月28日

摘要: ## T1:[Similar String](https://atcoder.jp/contests/abc303/tasks/abc303_a "Similar String") 模拟 代码实现 ``` #include #define rep(i, n) for (int i = 0; i > 阅读全文
posted @ 2023-05-28 01:28 V_Melville 阅读(55) 评论(0) 推荐(0)

2023年5月21日

摘要: ## T1:[Attack](https://atcoder.jp/contests/abc302/tasks/abc302_a) 答案为 $\lceil\frac{A}{B}\rceil$ 代码实现 ``` a, b = map(int, input().split()) print((a+b-1 阅读全文
posted @ 2023-05-21 00:29 V_Melville 阅读(43) 评论(0) 推荐(0)

2023年5月8日

摘要: ## T1:[加下标](https://jingsai.xiaohoucode.com/?id=3f811a17c19e7d7994f28822658a08e2#/studentComplier?bundleId=1877a02de4c0da8a1d3198b3000bb001&back=%2F16 阅读全文
posted @ 2023-05-08 01:35 V_Melville 阅读(70) 评论(0) 推荐(0)

2023年4月24日

摘要: T1:最长倍数序列 本题难度中等,先把 $a$ 从小到大排序。dp[i] 表示以 $a_i$ 结尾的倍数序列。转移如下: 只有 $a_i$,对应长度 $dp[i] = 1$ 上一个数是 $a_j (1 \leqslant j \leqslant i-1)$,若 $a_j$ 是 $a_i$ 的约数,就 阅读全文
posted @ 2023-04-24 23:46 V_Melville 阅读(86) 评论(0) 推荐(0)

2023年4月17日

摘要: T1:分段求平均数 本题难度中等,划分型DP问题。用 dp[i] 表示前 $i$ 个数最少划分成几段,对 $j = 1, 2, \cdots, i-1$ 判断从 $a_j$ 到 $a_i$ 划分成一段时,平均数是否为整数,如果是整数,就更新 $dp[i] = \max(dp[i], dp[j-1]+ 阅读全文
posted @ 2023-04-17 20:36 V_Melville 阅读(46) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页