丘馗
丘馗
全部文章
分类
归档
标签
去牛客网
登录
/
注册
丘馗的博客
全部文章
(共25篇)
题解 | nico和niconiconi
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; typedef long long ll; // 检...
2026-01-28
0
12
题解 | 小红蹦跳蹦跳
#include <iostream> #include <vector> using namespace std; const int MOD = 1e9+7; int main() { int n;cin>>n; vector<lo...
2026-01-27
1
12
题解 | 最长不下降子序列
#include <algorithm> #include <climits> #include <iostream> #include <vector> using namespace std; int main() { int n;cin...
2026-01-27
0
14
题解 | 小苯的最大和
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int T;cin>>T; for(int i=...
2026-01-27
0
12
题解 | abb
#include <iostream> #include <unordered_map> #include <vector> using namespace std; int main() { int n;cin>>n; string...
2026-01-23
0
13
题解 | 【模板】分数四则运算
#include <iostream> #include <cmath> #include <numeric> using namespace std; /* 解决思路: 找分母的最大公倍数 通分 分子 = 原来两个分子相加 分母 = ...
2026-01-21
0
16
题解 | 小红与gcd三角形
#include <iostream> using namespace std; //判断是否构成三角形 bool isTriangle(int a,int b,int c) { return (a+b>c)&&(a+c>b)&&(b...
2026-01-21
0
19
题解 | x_to_y_2
#include <iostream> using namespace std; int main() { int T;cin>>T; for(int i=0;i<T;i++) { long long x,y;cin>&g...
2026-01-21
0
17
题解 | 【模板】位运算Ⅲ ‖ 混合运算
#include <iostream> #include <bitset> using namespace std; int main() { int n;cin>>n; for(int i=0;i<n;i++) { ...
2026-01-21
0
16
题解 | 76选数
#include <iostream> using namespace std; /*通过位运算技巧,将高位复制到所有低位*/ void fillBits01(long long n) { if(n<=1) {cout<<n<<endl;retur...
2026-01-19
0
16
首页
上一页
1
2
3
下一页
末页