随笔分类 -  比赛题解

摘要:> 很久没写题目了,划点水题 ###A. Love Story ``` #include using namespace std; typedef long long LL; typedef pair PII; const LL MAXN = 1e18; const LL N = 1e6, M = 阅读全文
posted @ 2023-07-12 18:47 Vijurria 阅读(9) 评论(0) 推荐(0) 编辑
摘要:https://codeforces.com/contest/1820 ###A. Yura's New Name 题目大意: 给定一个字符串,每次这个表情^^或者这个表情^_^就是合法的 问我们这个字符串至少要添加多少东西使得怎么看都是合法的? input 7 ^______^ ___^_^^^_ 阅读全文
posted @ 2023-04-17 20:46 Vijurria 阅读(66) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/activity/content/competition/problem_list/3128/ ###4947. 大整数 题目大意: 给定n,k。输出n个k。 输入样例: 3 2 输出样例: 222 #include<bits/stdc++.h> usi 阅读全文
posted @ 2023-04-09 20:52 Vijurria 阅读(7) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/49030 这套题目质量挺好的,E过了200+,状态不佳,改天补补 ###A-子序列的权值最小值 输入 6 1 1 4 5 1 4 输出 0 #include<bits/stdc++.h> using namespace std 阅读全文
posted @ 2023-04-06 20:29 Vijurria 阅读(11) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/46597 ###A-超市里扫货 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const 阅读全文
posted @ 2023-04-05 19:33 Vijurria 阅读(5) 评论(0) 推荐(0) 编辑
摘要:https://codeforces.com/contest/1352 不知道怎么的复制过来的代码容易歪,观看效果可能不大好。 这场古早div4,大题极其友好,除了E卡空间卡到我爆炸,别的都体验感极好。 ###A. Sum of Round Numbers #include<bits/stdc++. 阅读全文
posted @ 2023-04-05 16:40 Vijurria 阅读(10) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/47266#question ###A-幼稚园的树 输入 2 6 1 10 100 200 120 230 5 230 200 7 5 1 2 3 4 5 10 5 2 1 输出 31 40 130 230 150 225 1 阅读全文
posted @ 2023-04-04 10:41 Vijurria 阅读(7) 评论(0) 推荐(0) 编辑
摘要:https://atcoder.jp/contests/abc296 ###A - Alternately #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; cons 阅读全文
posted @ 2023-04-01 23:31 Vijurria 阅读(29) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/activity/content/competition/problem_list/3088/ 果然绩点成绩和竞赛水平总得寄一个(to me ###4944. 热身计算 #include<bits/stdc++.h> using namespace st 阅读全文
posted @ 2023-04-01 21:20 Vijurria 阅读(8) 评论(0) 推荐(0) 编辑
摘要:E F G1 G2质量还挺好的 ###A. Plus or Minus https://codeforces.com/contest/1807/problem/A 题目大意: 给定a,b,c,问我们是a+b==c还是a-b==c?把正确的符号输出。 input 11 1 2 3 3 2 1 2 9 阅读全文
posted @ 2023-03-31 21:40 Vijurria 阅读(69) 评论(0) 推荐(0) 编辑
摘要:C E F 题目质量挺高的 https://ac.nowcoder.com/acm/contest/43844/A ###A-我会开摆 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL 阅读全文
posted @ 2023-03-31 19:56 Vijurria 阅读(17) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/problem/content/4881/ 输入样例1: 5 2 2 1 8 1 1 2 1 5 3 1 2 1 2 2 1 4 2 1 3 2 2 1 2 3 输出样例1: 3 6 4 输入样例2: 5 4 10 1 6 1 1 5 1 5 5 1 3 阅读全文
posted @ 2023-03-25 21:54 Vijurria 阅读(12) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/52441 这场小白我给打的,我愿称之为年度喜剧片 ###A-蛋挞 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair< 阅读全文
posted @ 2023-03-24 22:00 Vijurria 阅读(32) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/activity/content/competition/problem_list/3002/ ###4873. 简单计算 #include<bits/stdc++.h> using namespace std; typedef long long LL 阅读全文
posted @ 2023-03-20 16:58 Vijurria 阅读(16) 评论(0) 推荐(0) 编辑
摘要:https://codeforces.com/contest/670 ###A. Holidays 题目大意: 给定n天,求出可以休息的最大小时间和最大时间。 input 14 output 4 4 #include<bits/stdc++.h> using namespace std; typed 阅读全文
posted @ 2023-03-17 10:24 Vijurria 阅读(8) 评论(0) 推荐(0) 编辑
摘要:###A - Swap Odd and Even #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const LL MAXN=1e18,MINN=-1e18; co 阅读全文
posted @ 2023-03-13 19:31 Vijurria 阅读(41) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/activity/content/competition/problem_list/2961/ ###AcWing 4870. 装物品 水题 #include<bits/stdc++.h> using namespace std; typedef lon 阅读全文
posted @ 2023-03-12 18:10 Vijurria 阅读(17) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/51958 这场小白挺友好的,前五题都过了差不多500人。(比赛时不舒服打一半跑了,刚自己写完了剩下的(除了F,来水一下题解hh ###A-Tokitsukaze and New Operation #include<bits/ 阅读全文
posted @ 2023-03-12 17:42 Vijurria 阅读(10) 评论(0) 推荐(0) 编辑
摘要:https://codeforces.com/contest/1791 ABCDEG1全水题,直接上代码 F往下翻 ###A. Codeforces Checking #include<bits/stdc++.h> using namespace std; typedef long long LL; 阅读全文
posted @ 2023-02-22 15:28 Vijurria 阅读(84) 评论(0) 推荐(0) 编辑