03 2023 档案

摘要: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.luogu.com.cn/problem/P1922 标注的是个树形dp,其实就是个简单的dfs+dp 输入 #1 5 1 2 2 3 3 4 2 5 输出 #1 2 读题时间>构思时间+码代码时间(菜鸡日常 #include<bits/stdc++.h> using nam 阅读全文
posted @ 2023-03-30 11:32 Vijurria 阅读(45) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P1806 题目描述 路人甲准备跑n圈来锻炼自己的身体,他准备分多次(>1)跑完,每次都跑正整数圈,然后休息下再继续跑。 为了有效地提高自己的体能,他决定每次跑的圈数都必须比上次跑的多。 可以假设他刚开始跑了 0 圈,那么请问他可以有 阅读全文
posted @ 2023-03-29 21:43 Vijurria 阅读(288) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P1754 题目大意: 一共有2*n个人,n个人拿着50元的,n个人拿着100元的,但是卖票处一开始没有钱可以找。 问我们这些人怎样排列才可以完美的实现销售流程。 输入 #1 2 输出 #1 2 #include<bits/stdc+ 阅读全文
posted @ 2023-03-29 21:00 Vijurria 阅读(16) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P2986 输入 #1 5 1 1 0 0 2 1 3 1 2 3 2 3 4 3 4 5 3 输出 #1 15 推荐这位佬的思路以及题解 https://zhuanlan.zhihu.com/p/571948153 #include 阅读全文
posted @ 2023-03-29 16:58 Vijurria 阅读(37) 评论(0) 推荐(0) 编辑
摘要:###洛谷题面 https://www.luogu.com.cn/problem/P1775 ###AcWing题面 https://www.acwing.com/problem/content/description/284/ #include<bits/stdc++.h> using names 阅读全文
posted @ 2023-03-29 16:05 Vijurria 阅读(124) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P8742 输入 #1复制 3 1 4 6 输出 #1复制 10 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,L 阅读全文
posted @ 2023-03-28 21:06 Vijurria 阅读(86) 评论(0) 推荐(0) 编辑
摘要:vector使用insert(idx,x)表示在idx的位置上插入x这个数字 这样可以保证我们vector内的数字的有序性 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> P 阅读全文
posted @ 2023-03-27 21:18 Vijurria 阅读(15) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P3368 题目大意: 如题,已知一个数列,你需要进行下面两种操作: 1.将某区间每一个数加上x; 2.求出某一个数的值。 输入 #1复制 5 5 1 5 4 2 3 1 2 4 2 2 3 1 1 5 -1 1 3 5 7 2 4 阅读全文
posted @ 2023-03-27 21:05 Vijurria 阅读(22) 评论(0) 推荐(0) 编辑
摘要:https://www.luogu.com.cn/problem/P3374 题目大意: 有一个数组a,有两种操作: 一种是在x的位置上添加y; 一种是输出x到y位置上所有数字的和。 输入 #1 5 5 1 5 4 2 3 1 1 3 2 2 5 1 3 -1 1 4 2 2 1 4 输出 #1 1 阅读全文
posted @ 2023-03-27 20:39 Vijurria 阅读(25) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/problem/content/description/3558/ 输入样例: 1 8 4 2 3 4 5 6 -1 -1 -1 -1 7 -1 -1 8 -1 -1 -1 1 6 4 6 4 5 8 1 输出样例: 2 4 2 4 详解见代码内部 #i 阅读全文
posted @ 2023-03-26 20:19 Vijurria 阅读(20) 评论(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) 编辑
摘要:{ "title": { "text": "生鲜“新零售”了解渠道", "subtext": "", "left": "center", "top": "top" }, "legend": { "data": [ "在校学生", "管理人士", "事业单位员工", "企业职员", "自由职 阅读全文
posted @ 2023-03-25 17:21 Vijurria 阅读(14) 评论(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://pintia.cn/problem-sets/994805046380707840/exam/problems/994805053141925888 题目大意: 当你在社交网络平台注册时,一般总是被要求填写你的个人兴趣爱好,以便找到具有相同兴趣爱好的潜在的朋友。一个“社交集群”是指部 阅读全文
posted @ 2023-03-23 21:48 Vijurria 阅读(67) 评论(0) 推荐(0) 编辑
摘要:https://pintia.cn/problem-sets/994805046380707840/exam/problems/994805053695574016 输入样例: 17 Pop PeekMedian Push 3 PeekMedian Push 2 PeekMedian Push 1 阅读全文
posted @ 2023-03-23 21:08 Vijurria 阅读(40) 评论(0) 推荐(0) 编辑
摘要:https://codeforces.com/contest/1618/problem/D 题目大意: 给定一个长度为n的数组a,我们可以进行m次操作: 每次操作可以任意选择两个不同的下标的数字x和y,并把它两删除,替换成x/y(但是x/y不可以再被选择进行除数运算了)。 问我们这样剩下来的数列的最 阅读全文
posted @ 2023-03-23 16:03 Vijurria 阅读(12) 评论(0) 推荐(0) 编辑
摘要:https://codeforces.com/contest/1360/problem/D ###D. Buying Shovels 题目大意: 一个人想买正好n把铲子。店内有k种包装的铲子:第i种包装正好由i把铲子组成(1≤i≤k)。这家商店有无限数量的包装。 选择一种类型的包装,然后购买几个(一 阅读全文
posted @ 2023-03-22 21:33 Vijurria 阅读(17) 评论(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) 编辑
摘要:https://www.acwing.com/problem/content/4871/ 题目大意: 给定两个整数 n,x。(x为原始数据,n为需要我们把x变成的位数) 可以对x进行任意次以下操作: 选择x的一位数字y,将x替换为x*y。 求出把x变成n位数的最小操作数,如果无法达到,输出-1. 扩 阅读全文
posted @ 2023-03-13 20:51 Vijurria 阅读(16) 评论(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://pintia.cn/problem-sets/994805046380707840/exam/problems/994805054207279104 题目大意: 给定n个硬币,总共需要我们凑出m块钱。 问我们能凑出的硬币的最小字典序是什么? 可以的话输出最小的字典序数列,不可以的话输 阅读全文
posted @ 2023-03-08 21:37 Vijurria 阅读(63) 评论(0) 推荐(0) 编辑
摘要:https://www.acwing.com/problem/content/167/ 一共N只小猫,每个缆车最大承重量为W。N只小猫的重量分别是 C1、C2……CN。 当然,每辆缆车上的小猫的重量之和不能超过 W。 每租用一辆缆车,翰翰和达达就要付1美元,所以他们想知道,最少需要付多少美元才能把这 阅读全文
posted @ 2023-03-08 20:20 Vijurria 阅读(16) 评论(0) 推荐(0) 编辑
摘要:https://atcoder.jp/contests/abc292/tasks 来水一篇题解嘻嘻🤭 ###A - CAPS LOCK #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<L 阅读全文
posted @ 2023-03-07 17:46 Vijurria 阅读(12) 评论(1) 推荐(0) 编辑
摘要:https://pintia.cn/problem-sets/994805046380707840/exam/problems/1518582268930473984 ###L2-041 插松枝 题目意思: 人造松枝加工场的工人需要将各种尺寸的塑料松针插到松枝干上,做成大大小小的松枝。他们的工作流程 阅读全文
posted @ 2023-03-06 17:01 Vijurria 阅读(336) 评论(0) 推荐(0) 编辑
摘要:###L2-026 小字辈 #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<LL,LL> PII; const LL MAXN=1e18; const LL N=100020,M=4002 阅读全文
posted @ 2023-03-06 16:53 Vijurria 阅读(14) 评论(0) 推荐(0) 编辑
摘要:https://pintia.cn/problem-sets/994805046380707840/exam/problems/1518582383141380096 题目大意: 给定n个工作的时间段,每个时间段都在 00:00:00 到 23:59:59 这个范围内,说明不会跨天数,也不会发生重叠 阅读全文
posted @ 2023-03-06 16:52 Vijurria 阅读(164) 评论(0) 推荐(0) 编辑
摘要:###E1. Unforgivable Curse (easy version) https://codeforces.com/contest/1800/problem/E1 题目大意: 这是这个问题的一个简单版本。在这个版本中,k始终是3。 有两个长度为n的字符串s和c。 我们可以在k或k+1的距 阅读全文
posted @ 2023-03-04 11:59 Vijurria 阅读(124) 评论(0) 推荐(0) 编辑
摘要:https://ac.nowcoder.com/acm/contest/51458/C 题目大意: 给定一个三角形,三个点分别是(0,0)(xc,yc)(xb,0)。 ​ 问我们是否可以将三角形沿着x=某个数字切开,得到的两个平面图形面积相同。 可以输出“YES”,不行输出“NO”。 注意0<=xc 阅读全文
posted @ 2023-03-02 20:26 Vijurria 阅读(44) 评论(0) 推荐(0) 编辑
摘要:https://atcoder.jp/contests/abc286/tasks/abc286_d 题目大意: 给定n种钱,一共需要我们凑到x元。 n种类型的钱中每一种钱币值为ai,有bi张。 问我们能不能够凑到x元?可以的话输出Yes,不行的话就输出No。 Sample Input 1 2 19 阅读全文
posted @ 2023-03-02 17:15 Vijurria 阅读(50) 评论(0) 推荐(0) 编辑
摘要:https://atcoder.jp/contests/abc287/tasks/abc287_e ###E - Karuta 题目大意: 给定n个字符串数组Si,问每个字符串与其他字符串的最长公共前缀是多少。 Sample Input 2 11 abracadabra bracadabra rac 阅读全文
posted @ 2023-03-01 21:38 Vijurria 阅读(29) 评论(0) 推荐(0) 编辑