克苏鲁娘
克苏鲁娘
全部文章
分类
归档
标签
去牛客网
登录
/
注册
克苏鲁娘的博客
全部文章
(共13篇)
题解 | 解交点(1:含参方程+叉积,2:行列式解方程)
#include <bits/stdc++.h> using namespace std; struct point { double x, y; point(double A, double B) { x = A, y = B; } p...
2026-01-24
1
7
题解 | BFS (强大的string)
#include <cctype> #include <iostream> #include <string> using namespace std; int Where(string num,int &n)//没有引用num,为了不改变原输入(虽然本题...
2026-01-21
1
9
题解 | 扫雷(vector二维数组传递)
#include<iostream> #include<vector>//使用原因vector二维数组传递好实现且安全,同时初始化方便 using namespace std; int See(int i,int j,const vector<vector<cha...
2026-01-20
1
15
题解 | 约瑟夫环
#include<iostream> using namespace std; void NoflagGo(int *x,int n,int *a)//该函数功能让x去下一个没有标记的编号 { while(1) { if(*x==n-1)*x=0; ...
2026-01-20
1
11
题解 | 记数问题(模块化思路)
#include<iostream> using namespace std; int pd(int num,int x)//该函数对单个数字num判断x出现次数 { int t=0;//判断计数器 while(num) { if(num%10==...
2026-01-19
1
10
题解 | 数组计数维护(反对万能头)
#include<iostream> using namespace std; int test(int n,int k)//把测试函数做出来 { int a[n+1]; int s=0,cnt=0; for(int i=1;i<=n;i++)cin>...
2026-01-19
1
12
题解 | 求极差方差,模块化写代码
#include <iomanip> #include<iostream> #include<algorithm> using namespace std; int jc(int n,int *a)//极差 { int t; sort(a+1,a+...
2026-01-19
1
11
题解 | 神秘石像的镜像序列
#include<iostream> #include<vector> #define QwQ return 0 using namespace std; int main() { int n; int t=0; vector<int> a...
2026-01-19
1
12
题解 | 二维斐波那契数列
#include<iostream> #include<vector> using namespace std; int main() { int n,m;cin>>n>>m; vector<vector<long long...
2026-01-19
1
10
题解 | 斐波那契数列
#include<iostream> #include<vector> #define QwQ return 0 using namespace std; int main() { int n;cin>>n; vector<int> F...
2026-01-19
1
19
首页
上一页
1
2
下一页
末页