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

2023年10月7日

摘要: T1:Weak Beats 模拟 代码实现 s = input() for i in range(1, len(s), 2): if s[i] == '1': exit(print('No')) print('Yes') T2:Round-Robin Tournament 模拟 代码实现 #incl 阅读全文
posted @ 2023-10-07 23:08 V_Melville 阅读(19) 评论(0) 推荐(0) 编辑

2023年10月3日

摘要: T1:First ABC 2 模拟 代码实现 #include <bits/stdc++.h> using namespace std; int main() { int n; string s; cin >> n >> s; auto i = s.find("ABC"); if (i == str 阅读全文
posted @ 2023-10-03 19:24 V_Melville 阅读(10) 评论(0) 推荐(0) 编辑

2023年9月23日

摘要: T1:321-like Checker 模拟 代码实现 #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for (int i = 0; i+1 < s.size(); ++i) { if ( 阅读全文
posted @ 2023-09-23 22:59 V_Melville 阅读(26) 评论(0) 推荐(0) 编辑

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 阅读(13) 评论(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 阅读(6) 评论(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 阅读(23) 评论(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 阅读(32) 评论(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 阅读(17) 评论(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 阅读(9) 评论(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 阅读(24) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页