上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页

2023年11月20日

摘要: T1:词典 题意: 给定 \(n\) 个长度为 \(m\) 的字符串 \(w_1, w_2, \cdots, w_n\) 。 对于每个 \(i = 1, 2, \cdots, n\) 询问是否存在 \(w_1', w_2', \cdots, w_n'\) 使得对于每个 \(j = 1, 2, \cd 阅读全文
posted @ 2023-11-20 21:02 V_Melville 阅读(146) 评论(0) 推荐(0)

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 阅读(72) 评论(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 阅读(43) 评论(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 阅读(29) 评论(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 阅读(52) 评论(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 阅读(43) 评论(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 阅读(43) 评论(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 阅读(66) 评论(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 阅读(41) 评论(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 阅读(48) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页