上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页

2023年8月9日

摘要: ## T1:[两数归零](https://iai.sh.cn/problem/817 "两数归零") $a_i + a_j = 0 \Leftrightarrow a_j = -a_i$,用 `std::map` 来统计即可 代码实现 ``` #include #define rep(i, n) f 阅读全文
posted @ 2023-08-09 20:30 V_Melville 阅读(33) 评论(0) 推荐(0)
 
摘要: T1:树的计数 注意到,深度为 \(2\) 的点一定是深度为 \(1\) 的点的儿子节点,深度为 \(3\) 的点一定是深度为 \(2\) 的点的儿子节点.....那么深度为 \(i\) 的点可以是深度为 \(i - 1\) 的儿子节点,对于此题是一个经典的分步乘法计数原理,把深度为 \(2\) 的 阅读全文
posted @ 2023-08-09 12:53 V_Melville 阅读(61) 评论(0) 推荐(0)

2023年8月5日

摘要: ## T1:[To Be Saikyo](https://atcoder.jp/contests/abc313/tasks/abc313_a "To Be Saikyo") $x \geqslant \max({p_i}), i > 1$ 代码实现 ``` n = int(input()) a = 阅读全文
posted @ 2023-08-05 23:38 V_Melville 阅读(48) 评论(0) 推荐(0)

2023年7月29日

摘要: ## T1:[Chord](https://atcoder.jp/contests/abc312/tasks/abc312_a "Chord") 模拟 代码实现 ``` s = input() if s in 'ACE, BDF, CEG, DFA, EGB, FAC, GBD': print('Y 阅读全文
posted @ 2023-07-29 23:38 V_Melville 阅读(45) 评论(0) 推荐(0)
 
摘要: ## T1:[New Scheme](https://atcoder.jp/contests/abc308/tasks/abc308_a "New Scheme") 模拟 代码实现 ``` def solve(): s = list(map(int, input().split())) for i 阅读全文
posted @ 2023-07-29 18:36 V_Melville 阅读(28) 评论(0) 推荐(0)

2023年7月24日

摘要: ## T1:[First ABC](https://atcoder.jp/contests/abc311/tasks/abc311_a "First ABC") 模拟 代码实现 ``` n = int(input()) s = input() A = B = C = False for i in r 阅读全文
posted @ 2023-07-24 14:05 V_Melville 阅读(50) 评论(0) 推荐(0)

2023年7月18日

摘要: ## T1:[Weekly Records](https://atcoder.jp/contests/abc307/tasks/abc307_a "Weekly Records") 模拟 代码实现 ``` n = int(input()) a = list(map(int, input().spli 阅读全文
posted @ 2023-07-18 23:57 V_Melville 阅读(27) 评论(0) 推荐(0)

2023年7月17日

摘要: T1:Order Something Else 模拟 代码实现 n, p, q = map(int, input().split()) d = list(map(int, input().split())) print(min(p, q+min(d))) T2:Strictly Superior 模 阅读全文
posted @ 2023-07-17 12:54 V_Melville 阅读(39) 评论(0) 推荐(0)

2023年7月8日

摘要: ## T1:[Nine](https://atcoder.jp/contests/abc309/tasks/abc309_a) 当 $A+1 = B$ 且 $A \% 3 = 1$ 时,说明 $A$ 和 $B$ 相邻 代码实现 ``` a, b = map(int, input().split()) 阅读全文
posted @ 2023-07-08 23:44 V_Melville 阅读(48) 评论(0) 推荐(0)

2023年6月19日

摘要: ## T1:[Sequence Matching](https://jingsai.xiaohoucode.com/?id=728026276940c8331123c349a8038255&code=0eb96cd742a4e2df36520464ec201564da27087744fd07879a 阅读全文
posted @ 2023-06-19 21:49 V_Melville 阅读(36) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页