Leavery
Leavery
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Leavery的博客
全部文章
/ 题解
(共7篇)
题解 | 牛客周赛 Round 91 - 个人题解
补完题 发一下个人题解 A 模拟 #include <iostream> using namespace std; int main() { string s, t = "while"; cin>>s; int cnt = 0; for (int i=0; ...
2025-04-28
6
18
题解 | 牛客周赛 Round 86 - A~E
个人题解 A~E A #include <iostream> using namespace std; int main() { int x,y; cin>>x>>y; cout<<(y+x-1)/x<<'\n'; ...
2025-03-23
11
50
题解 | 牛客周赛 Round 84 - 个人题解
A 模拟 #include <iostream> using namespace std; int main() { int a1,a2,a3; cin>>a1>>a2>>a3; cout<<(abs(a1-a2) + abs...
2025-03-09
21
101
牛客周赛 Round 73 - A~E
A~E题个人题解 A 找大于l的第一个为x的倍数的数 #include <iostream> using namespace std; int main() { int l,r,x; cin>>l>>r>>x; cout<<(...
2024-12-22
9
74
牛客周赛 Round 69 - D bitset做法
D题 bitset做法 直接枚举所有2^q种情况 因为数据范围很小 所以O(2^q*q*n*m)即可通过该题 #include <iostream> #include <bitset> using namespace std; int main() { int n,m,...
2024-11-24
5
82
牛客周赛 Round 66 - D&E线段树做法
D&E线段树做法 #include <iostream> #include <iomanip> using namespace std; int a[200005]; struct elem { double val; int l,r; }; struct ...
2024-11-04
1
66
牛客周赛 Round 65 - 个人题解
分享一下个人的题解,赛时做出了A-F,G题得了240。赛后过了G题。 A 直接用set存所有合法的结果 2024.10.28 14:25 更新: 之前写的麻烦了,直接取较小的一直取即可。 #include <iostream> using namespace std; int main...
2024-10-27
7
135