上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

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 阅读(15) 评论(0) 推荐(0) 编辑
 
摘要: ## T1:[树的计数](https://iai.sh.cn/problem/834 "树的计数") 注意到,深度为 $2$ 的点一定是深度为 $1$ 的点的儿子节点,深度为 $3$ 的点一定是深度为 $2$ 的点的儿子节点.....那么深度为 $i$ 的点可以是深度为 $i - 1$ 的儿子节点, 阅读全文
posted @ 2023-08-09 12:53 V_Melville 阅读(47) 评论(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 阅读(28) 评论(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 阅读(28) 评论(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 阅读(8) 评论(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 阅读(7) 评论(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 阅读(19) 评论(0) 推荐(0) 编辑

2023年7月17日

摘要: ## T1:[Order Something Else](https://atcoder.jp/contests/abc310/tasks/abc310_a) 模拟 代码实现 ``` n, p, q = map(int, input().split()) d = list(map(int, inpu 阅读全文
posted @ 2023-07-17 12:54 V_Melville 阅读(19) 评论(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 阅读(29) 评论(0) 推荐(0) 编辑

2023年6月19日

摘要: ## T1:[Sequence Matching](https://jingsai.xiaohoucode.com/?id=728026276940c8331123c349a8038255&code=0eb96cd742a4e2df36520464ec201564da27087744fd07879a 阅读全文
posted @ 2023-06-19 21:49 V_Melville 阅读(20) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页