上一页 1 2 3 4 5 6 ··· 11 下一页

2023年10月21日

摘要: T1:Takahashi san 模拟 代码实现 #include <bits/stdc++.h> using namespace std; int main() { string s, t; cin >> s >> t; cout << s << ' ' << "san"; return 0; } 阅读全文
posted @ 2023-10-21 22:59 V_Melville 阅读(42) 评论(0) 推荐(0) 编辑

2023年10月18日

摘要: T1:果果趣 首先观察每 \(15\) 个连续正整数组成序列中不包含特殊词汇对应的原始数字有 \(8\) 个:1、2、4、7、8、11、13、14。所以可以将 \(n\) 除以 \(8\) 取商 \(d\) 和余 \(r\),然后根据 \(d\) 和 \(r\) 计算结果。 如果 \(r \neq 阅读全文
posted @ 2023-10-18 02:40 V_Melville 阅读(3) 评论(0) 推荐(0) 编辑

2023年10月16日

摘要: T1:子集和(七) 考虑折半搜索 先暴力预处理出左右两部分的子集和序列 \(b\) 和 \(c\) 并对两序列做排序 然后固定 \(c_i\),二分找到 \(b\) 序列中第一个大于 \(-c_i\) 的位置 \(j\),那么对答案的贡献就是 \(|b|-j+1\) 代码实现 #include <b 阅读全文
posted @ 2023-10-16 21:10 V_Melville 阅读(4) 评论(0) 推荐(0) 编辑
 
摘要: T1:Same set 代码实现 n = int(input()) a = list(map(int, input().split())) if len(set(a)) == 1: print('Yes') else: print('No') T2:3-smooth Numbers 把 \(N\) 阅读全文
posted @ 2023-10-16 03:43 V_Melville 阅读(12) 评论(0) 推荐(0) 编辑

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 阅读(17) 评论(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 阅读(8) 评论(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 阅读(22) 评论(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 阅读(11) 评论(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 阅读(3) 评论(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 阅读(21) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页