上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页

2024年5月25日

摘要: A. Who Ate the Cake? 模拟 代码实现 a, b = map(int, input().split()) if a == b: print(-1) else: print(6-a-b) B. Piano 2 模拟 代码实现 #include <bits/stdc++.h> #def 阅读全文
posted @ 2024-05-25 23:30 V_Melville 阅读(105) 评论(0) 推荐(0)

2024年5月18日

摘要: A. Exponential Plant 模拟 代码实现 h = int(input()) now, day = 0, 0 while now <= h: now += 1<<day day += 1 print(day) B. AtCoder Janken 2 模拟 代码实现 #include < 阅读全文
posted @ 2024-05-18 23:47 V_Melville 阅读(60) 评论(0) 推荐(0)
 
摘要: T3. 挑剔的美食家 作为一名挑剔的美食家,小猴对食物是很讲究的,哪怕摆在面前的只有若干香蕉和苹果,小猴依然有他的讲究。 已知目前已有 \(n\) 根香蕉和 \(m\) 个苹果,小猴制定了以下规则来决定自己的食用顺序: 每个香蕉都被认为是独特的个体,可以理解为编号为 \(1 \sim n\) 的香蕉 阅读全文
posted @ 2024-05-18 18:15 V_Melville 阅读(51) 评论(0) 推荐(0)

2024年5月16日

摘要: T6. 燃料 小明要开车从家里前往远方的城市 \(C\),他家到城市的路程是 \(L\) 公里。他的车每开 \(1\) 公里需要消耗 \(1\) 升汽油,车的油箱最多只能装 \(V\) 升汽油,出发前他的车是加满汽油的。 路途中有 \(n\) 个加油站,第 \(i\) 个加油站离小明家的路程是 \( 阅读全文
posted @ 2024-05-16 23:03 V_Melville 阅读(41) 评论(0) 推荐(0)

2024年5月4日

摘要: A. AtCoder Line 判断 \(z\) 是否出现在 \(x\) 和 \(y\) 之间即可 代码实现 n, x, y, z = map(int, input().split()) if x > y: x, y = y, x if x < z < y: print('Yes') else: p 阅读全文
posted @ 2024-05-04 23:44 V_Melville 阅读(62) 评论(0) 推荐(0)

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 阅读(17) 评论(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 阅读(52) 评论(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 阅读(36) 评论(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 阅读(42) 评论(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 阅读(29) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页