随笔分类 -  atcoder

AtCoder Beginner Contest 128 D - equeue
摘要:#include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> #include<iostream> #include<algorithm> #include<vector> #include<queue> typede 阅读全文

posted @ 2022-06-02 13:04 zesure 阅读(30) 评论(0) 推荐(0) 编辑

atcode abc E - Distance Sequence
摘要:题意:给定三个数N,M,K N为序列长度,M为每个序列的大小,K为每个序列与后一个序列差值的绝对值 求这种序列组合数 思路: 典中典dp求组合数,但我一直都没怎么刷过dp,,,, 首先考虑dp数组状态 根据题目,状态转移是根据序列某个位置与下一个位置的差值决定的 那么假设:dp[i][j],i为序列 阅读全文

posted @ 2022-05-29 16:14 zesure 阅读(59) 评论(0) 推荐(0) 编辑

atcoder arc140 A
摘要:思路:循环节枚举最小修改数 #include<vector> #include<iostream> #include<string> using namespace std; int main() { int len,k;cin>>len>>k; string op;cin>>op; vector< 阅读全文

posted @ 2022-05-16 20:48 zesure 阅读(46) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

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