上一页 1 2 3 4 5 6 7 8 ··· 31 下一页
摘要: 小苯的石子游戏 贪心 #include<bits/stdc++.h> using namespace std; #define int long long using vi = vector<int>; using i32 = int32_t; using pii = pair<int, int>; 阅读全文
posted @ 2024-02-18 17:57 PHarr 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 我有一款游戏 print("原神启动") 除夜 print("除夕快乐万事如意") 咏兰 print("神崎兰子") Kevin的新春礼物 能做这个题还是挺幸运的。 首先定理\(lcm(x,y)\ge \max(x,y)\)。令\(x\ge y\),则\(x\oplus y=lcm(x,y)\ge 阅读全文
posted @ 2024-02-18 17:49 PHarr 阅读(2) 评论(0) 推荐(0) 编辑
摘要: A - Arithmetic Progression #include<bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using i128 = __int128; using ldb = 阅读全文
posted @ 2024-02-18 17:26 PHarr 阅读(9) 评论(0) 推荐(0) 编辑
摘要: A. Magic Computer 看题目猜规律 #include <bits/stdc++.h> using namespace std; #define int long long using vi = vector<int>; using i32 = int32_t; const int mo 阅读全文
posted @ 2024-02-10 18:27 PHarr 阅读(214) 评论(0) 推荐(0) 编辑
摘要: A-玉米大炮 二分一个时间,然后计算每门大炮可以射击的次数 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 #define double long double typ 阅读全文
posted @ 2024-02-04 19:15 PHarr 阅读(4) 评论(0) 推荐(0) 编辑
摘要: A - Counting Passes #include <bits/stdc++.h> using namespace std; #define int long long using vi = vector<int>; using i32 = int32_t; using pii = pair< 阅读全文
posted @ 2024-02-04 18:45 PHarr 阅读(1) 评论(0) 推荐(0) 编辑
摘要: A-DFS搜索 暴力判就行 #include<bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using i128 = __int128; #define int long long us 阅读全文
posted @ 2024-02-04 18:36 PHarr 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 赛时我们通过了7题,排名25。 A 摩斯电码 队友代码 #include<bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> P; map<string, string> mp; void 阅读全文
posted @ 2024-02-03 01:04 PHarr 阅读(525) 评论(0) 推荐(2) 编辑
摘要: P8840 [传智杯 #4 初赛] 报告赋分 #include<bits/stdc++.h> using namespace std; #define int long long using vi = vector<int>; using i32 = int32_t; using pii = pai 阅读全文
posted @ 2024-01-29 19:17 PHarr 阅读(100) 评论(0) 推荐(2) 编辑
摘要: A - Capitalized? #include<bits/stdc++.h> using namespace std; #define int long long using vi = vector<int>; using i32 = int32_t; using pii = pair<int, 阅读全文
posted @ 2024-01-28 22:33 PHarr 阅读(43) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 31 下一页