06 2024 档案

ABC359
摘要:A. Count Takahashi 模拟 代码实现 n = int(input()) ans = 0 for i in range(n): s = input() if s == 'Takahashi': ans += 1 print(ans) B. Couples 统计有多少个数对 \((i, 阅读全文
posted @ 2024-06-26 23:24 V_Melville 阅读(8) 评论(0) 推荐(0) 编辑
dp题选做
摘要:1. 在两个数列之间 有两个整数数列 a1,a2,,anb1,b2,,bn。我们的任务是找出满足以下条件的数列 c1,c2,,cn: 对 i=1,2,,n,\(a_i \le c_i \le b_ 阅读全文
posted @ 2024-06-19 17:15 V_Melville 阅读(10) 评论(0) 推荐(1) 编辑
ABC358
摘要:A. Welcome to AtCoder Land 模拟 B. Ticket Counter 模拟 代码实现 #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; 阅读全文
posted @ 2024-06-15 23:49 V_Melville 阅读(73) 评论(0) 推荐(1) 编辑
ABC357
摘要:A. Sanitize Hands 模拟 代码实现 #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; int main() { int n, m; cin >> 阅读全文
posted @ 2024-06-14 23:56 V_Melville 阅读(9) 评论(0) 推荐(0) 编辑
积的和典型
摘要:对于所有长度为 n 且总和为 m 的任意正整数序列 a,求 aimod 998244353 。 限制: 1n,m2×105 算法分析 做法一:积的和典型 一方面,满足 阅读全文
posted @ 2024-06-08 13:34 V_Melville 阅读(12) 评论(0) 推荐(0) 编辑
AT题选做
摘要:ABC127E. Cell Distance (|xixj|+|yiyj|)=|xixj|+|yiyj| 所以,xy 可以分别单独考虑 这里仅讨论 x 的贡献,\( 阅读全文
posted @ 2024-06-07 21:43 V_Melville 阅读(9) 评论(0) 推荐(0) 编辑
ABC356
摘要:A. Subsegment Reverse 模拟 代码实现 n, l, r = map(int, input().split()) l -= 1 a = list(range(1, n+1)) a[l:r] = a[l:r][::-1] print(*a) B. Nutrients 模拟 代码实现 阅读全文
posted @ 2024-06-03 21:59 V_Melville 阅读(62) 评论(5) 推荐(1) 编辑

 
点击右上角即可分享
微信分享提示