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

2023年9月16日

摘要: T1:Leyland Number 模拟 代码实现 a, b = map(int, input().split()) print(a**b+b**a) T2:Longest Palindrome 模拟 代码实现 #include <bits/stdc++.h> #define rep(i, n) f 阅读全文
posted @ 2023-09-16 23:48 V_Melville 阅读(30) 评论(0) 推荐(0)

2023年9月15日

摘要: T1:Legendary Players 模拟 代码实现 table = ''' tourist 3858 ksun48 3679 Benq 3658 Um_nik 3648 apiad 3638 Stonefeang 3630 ecnerwala 3613 mnbvmar 3555 newbied 阅读全文
posted @ 2023-09-15 02:32 V_Melville 阅读(39) 评论(0) 推荐(0)

2023年9月9日

摘要: T1:算术计算 \(T\) 组数据,每组数据给出 \(n, a, p\),求 \(\sum\limits_{i=1}^n ia^i\) 对 \(p\) 取模的值。 部分分 直接暴力求和可以拿到 \(15\) 分 另外 \(10\%\) 的数据 \(a = 1\),不难通过数据计算得到答案为 \(\f 阅读全文
posted @ 2023-09-09 23:46 V_Melville 阅读(58) 评论(0) 推荐(0)

2023年9月5日

摘要: ## T1:[序列最大公约数](https://iai.sh.cn/problem/843 "序列最大公约数") $\mathcal{O}(\sqrt{s})$ 枚举 $\gcd$ 即可 代码实现 ``` #include using namespace std; int main() { int 阅读全文
posted @ 2023-09-05 02:08 V_Melville 阅读(52) 评论(0) 推荐(0)

2023年9月2日

摘要: ## T1:[Full Moon](https://atcoder.jp/contests/abc318/tasks/abc318_a "Full Moon") 模拟 代码实现 ``` n, m, p = map(int, input().split()) ans = 0 i = m while i 阅读全文
posted @ 2023-09-02 23:33 V_Melville 阅读(33) 评论(0) 推荐(0)
 
摘要: ## T1:[Potions](https://atcoder.jp/contests/abc317/tasks/abc317_a "Potions") 模拟 代码实现 ``` n, h, x = map(int, input().split()) p = list(map(int, input() 阅读全文
posted @ 2023-09-02 00:24 V_Melville 阅读(34) 评论(0) 推荐(0)

2023年8月28日

摘要: T1:幸运儿 幸运儿是 \((x-1+m-1)\%n+1\) 代码实现 #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { int n, 阅读全文
posted @ 2023-08-28 17:54 V_Melville 阅读(38) 评论(0) 推荐(0)

2023年8月27日

摘要: ## T1:[树节点的排序](https://www.jisuanke.com/problem/T3883 "树节点的排序") $N \leqslant 8$: - 枚举排列即可 $N \leqslant 15$: - 状压dp - `dp[i][s]` 表示深度为 $i$,排列中选了 $s$ 里所 阅读全文
posted @ 2023-08-27 12:57 V_Melville 阅读(75) 评论(0) 推荐(0)

2023年8月19日

摘要: ## T1: [tcdr](https://atcoder.jp/contests/abc315/tasks/abc315_a "tcdr") 模拟 代码实现 ``` #include using namespace std; int main() { string s; cin >> s; era 阅读全文
posted @ 2023-08-19 23:34 V_Melville 阅读(74) 评论(0) 推荐(0)

2023年8月12日

摘要: ## T1:[3.14](https://atcoder.jp/contests/abc314/tasks/abc314_a "3.14") 模拟 代码实现 ``` s = '3.141592653589793238462643383279502884197169399375105820974944 阅读全文
posted @ 2023-08-12 23:09 V_Melville 阅读(92) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页