摘要:
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 阅读全文
2023年10月7日
2023年10月3日
2023年9月23日
2023年9月16日
2023年9月15日
2023年9月9日
摘要:
T1:算术计算 \(T\) 组数据,每组数据给出 \(n, a, p\),求 \(\sum\limits_{i=1}^n ia^i\) 对 \(p\) 取模的值。 部分分 直接暴力求和可以拿到 \(15\) 分 另外 \(10\%\) 的数据 \(a = 1\),不难通过数据计算得到答案为 \(\f 阅读全文
2023年9月5日
摘要:
## T1:[序列最大公约数](https://iai.sh.cn/problem/843 "序列最大公约数") $\mathcal{O}(\sqrt{s})$ 枚举 $\gcd$ 即可 代码实现 ``` #include using namespace std; int main() { int 阅读全文
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 阅读全文
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, 阅读全文