上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 30 下一页
摘要: 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 高尔赛凡尔娟 阅读(7) 评论(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 高尔赛凡尔娟 阅读(14) 评论(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 高尔赛凡尔娟 阅读(36) 评论(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 高尔赛凡尔娟 阅读(12) 评论(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 高尔赛凡尔娟 阅读(10) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805046380707840/exam/problems/994805054207279104 题目大意: 给定n个硬币,总共需要我们凑出m块钱。 问我们能凑出的硬币的最小字典序是什么? 可以的话输出最小的字典序数列,不可以的话输 阅读全文
posted @ 2023-03-08 21:37 高尔赛凡尔娟 阅读(59) 评论(0) 推荐(0) 编辑
摘要: https://www.acwing.com/problem/content/167/ 一共N只小猫,每个缆车最大承重量为W。N只小猫的重量分别是 C1、C2……CN。 当然,每辆缆车上的小猫的重量之和不能超过 W。 每租用一辆缆车,翰翰和达达就要付1美元,所以他们想知道,最少需要付多少美元才能把这 阅读全文
posted @ 2023-03-08 20:20 高尔赛凡尔娟 阅读(15) 评论(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 高尔赛凡尔娟 阅读(8) 评论(1) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805046380707840/exam/problems/1518582268930473984 ###L2-041 插松枝 题目意思: 人造松枝加工场的工人需要将各种尺寸的塑料松针插到松枝干上,做成大大小小的松枝。他们的工作流程 阅读全文
posted @ 2023-03-06 17:01 高尔赛凡尔娟 阅读(275) 评论(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 高尔赛凡尔娟 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 30 下一页