09 2023 档案
摘要:9.27 A - Moore's Law 思路:快速幂 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 #define double long double typed
阅读全文
摘要:SMU Autumn 2023 Round 5 A - Everyone Loves to Sleep 思路:将小于睡觉时间的闹钟加24:00,找到最小的时间min,答案即为min-睡觉时间 #include<bits/stdc++.h> using namespace std; //#define
阅读全文
摘要:2021年中国大学生程序设计竞赛女生专场 K - 音乐游戏 思路:签到题,数有多少'-' #include<bits/stdc++.h> using namespace std; #define int long long vector<int>d[5010]; int32_t main(){ in
阅读全文
摘要:2022-2023 ACM-ICPC German Collegiate Programming Contest (GCPC 2022) K - K.O. Kids 思路:模拟每一步,下一个人从上一个人掉水的位置开始 #include<bits/stdc++.h> using namespace s
阅读全文
摘要:Educational Codeforces Round 100 (Rated for Div. 2) Educational Codeforces Round 101 (Rated for Div. 2) Educational Codeforces Round 102 (Rated for Di
阅读全文
摘要:Codeforces Round 895 (Div. 3) A - Two Vessels 思路:找到差值,让a,b向中间靠 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int1
阅读全文
摘要:C - Set or Decrease 思路:只有两个操作:1.ai减一 和 2.ai变aj,要让所有数总和变小且操作次数少,可以贪心的想:操作一的ai为最小的数,操作二的ai为最大的数,aj为最小的数; 那么将a排序后,枚举操作2的数量cnt,对应的可以求出在满足总和小于等于k的情况下需要操作一的
阅读全文