olone
olone
全部文章
分类
归档
标签
去牛客网
登录
/
注册
olone的博客
全部文章
(共17篇)
题解 | 智乃的数字
//3 9 15 21 27 33 39 45 51 57 63 69 75 //5 15 25 35 45 55 65 75 //3 5 9 15 21 25 27 33 35 39 45 51 55 57 63 65 69 75 //1 2 3 4 5 6 7 8 9 10 11 1...
2025-12-13
0
13
题解 | 小红的密码修改
#include<bits/stdc++.h> using namespace std; int cnt[4]; int t; int main() { std::ios::sync_with_stdio(false); cin>>t; whil...
2025-12-12
0
14
题解 | 大撒币
#include<iostream> using namespace std; int a,b,r; int main() { cin>>a>>b>>r; if(a<b) swap(a,b); int num; ...
2025-12-10
0
12
题解 | 质数统计
#include<bits/stdc++.h> using namespace std; const int N=1e6+5; int n; int l,r; int prime[N],cnt; bool isprime[N+5]; int main() { cin>...
2025-12-04
0
10
题解 | 小红的 gcd
#include<iostream> #include<cmath> #include<vector> #include<algorithm> #define int long long using namespace std; const int...
2025-12-02
1
17
题解 | #构造数独#
一个很简单的构造方法,由于每一行和是相同的,所有我们可以先让每行的元素是一样,而后为了让每一列的和一样的,我们可以循环右移每一行的元素,例如第一行是1 2 3 4,那么第二行就是4 1 2 3,由于是矩阵那么最终每一列都会有和行一样的元素。而在这基础上,我们可以想到最简单的构造方法就是,每一行每一列...
2025-12-01
0
16
题解 | 小红的区间修改(一)
#include<iostream> using namespace std; const int N=3e5+5; int q,n; int l[N],r[N],tr[N]; inline int lowbit(int x){return x&-x;} inline ...
2025-11-30
0
11
首页
上一页
1
2
下一页
末页