2024年4月21日

摘要: G题暴力有点难绷。。 T1:Past ABCs 考虑后三个字符构成的十进制数即可 注意ABC000也要考虑 代码实现 s = input() id = int(s[3:]) if 1 <= id <= 349 and id != 316: print('Yes') else: print('No') 阅读全文
posted @ 2024-04-21 00:28 V_Melville 阅读(3) 评论(0) 推荐(0) 编辑

2024年4月6日

摘要: T1:Penalty Kick 模拟 代码实现 #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; string ans; for (int i = 1; i <= n; ++i) { if (i%3 阅读全文
posted @ 2024-04-06 23:54 V_Melville 阅读(19) 评论(0) 推荐(0) 编辑

2024年3月31日

摘要: T1:Divisible 模拟 代码实现 #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { int n, k; cin >> n >> 阅读全文
posted @ 2024-03-31 00:32 V_Melville 阅读(22) 评论(0) 推荐(0) 编辑

2024年3月13日

摘要: T1:Yay! 模拟 代码实现 #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { string s; cin >> s; vector< 阅读全文
posted @ 2024-03-13 23:04 V_Melville 阅读(4) 评论(0) 推荐(0) 编辑

2024年2月17日

摘要: T1:Print 341 模拟 代码实现 n = int(input()) print('1'+'01'*n) T2:Foreign Exchange 模拟 代码实现 n = int(input()) a = list(map(int, input().split())) for i in rang 阅读全文
posted @ 2024-02-17 23:30 V_Melville 阅读(7) 评论(0) 推荐(0) 编辑

2024年2月11日

摘要: T1:Arithmetic Progression 模拟 代码实现 a, b, d = map(int, input().split()) for i in range(a, b+1, d): print(i, end=' ') T2:Append 模拟 代码实现 q = int(input()) 阅读全文
posted @ 2024-02-11 01:47 V_Melville 阅读(12) 评论(0) 推荐(0) 编辑

2024年1月30日

摘要: T1:Capitalized? 模拟 代码实现 s = input() if s.istitle(): print('Yes') else: print('No') T2:Frequency 模拟 代码实现 #include <bits/stdc++.h> using namespace std; 阅读全文
posted @ 2024-01-30 00:44 V_Melville 阅读(5) 评论(0) 推荐(0) 编辑

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 阅读(40) 评论(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 阅读(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) 编辑