花碗
花碗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
花碗的博客
全部文章
(共17篇)
题解 | 智乃的数字
#include<iostream> using namespace std; typedef long long ll; ll check(ll x){ ll m10=(x+5)/10; ll m6=(x+3)/6; ll m=(x+15)/30; re...
2025-12-14
0
35
题解 | 小红的 gcd
高位数求最大公约数 注意到a%b后就在int范围内了 故先取% 在余数相乘过程中可能会越界用long long转换对大数运算时要考虑每次加乘运算后是否越界 #include <iostream> #include<cstring> using namespace std; ...
2025-12-02
0
28
题解 | 构造数独
#include <iostream> using namespace std; int main() { int n,k; scanf("%d%d",&n,&k); int a[n][n]; int t=k/n;//...
2025-12-01
0
31
题解 | 小红的区间修改(一)
根据题意简化成每段区间成功添加到集合后 最大的区间长度但如果按个遍历集合内每个元素 时间复杂度为$O_n$超时 借助set二分查找优化为$log(n)$后即可 #include <iostream> #include<algorithm> #include <set&g...
2025-11-30
0
37
题解 | 小天的 Minecraft
#include <iostream> #include<algorithm> #include<cmath> using namespace std; int main() { int t; scanf("%d",&...
2025-11-29
0
30
题解 | 迷途之家的大贤者
#include <algorithm> #include <iostream> #include<cstring> using namespace std; int main() { int n; scanf("%d",&am...
2025-11-28
0
29
题解 | 小sun的假期
#include <iostream> #include<algorithm> using namespace std; const int N=100010; typedef pair<int,int> PII; PII p[N]; int main() { ...
2025-11-27
0
31
首页
上一页
1
2
下一页
末页