提瓦特第一深情
提瓦特第一深情
全部文章
分类
板子(1)
题解(1)
归档
标签
去牛客网
登录
/
注册
提瓦特第一深情的博客
寻找远方的自己,追寻圈外的生命
全部文章
(共29篇)
图的遍历
#include<bits/stdc++.h> using namespace std; typedef long long ll; ll n,e,g[35][35],u; bool f[35]; struct node{ ll l,r; }a[35]; ll cmp(node a...
C++
2023-11-05
0
20
Degree Sequence of Graph G(模拟+Havel定理)
#include<bits/stdc++.h> using namespace std; bool cmp(int a,int b) { return a>b; } int main() { int n,i,j,t; int a[105]; ci...
C++
2023-11-03
0
17
Vue创建项目
** Vue创建项目的3种方式** 前言: 在创建Vue项目时需要安装vue脚手架,安装方法入下: 打开终端-运行 npm i -g @vue/cli,安装完成之后运行vue -V查看相关信息 一. 第一种方式 (1) 打开终端输入vue create 项目名 回车 (2) 在选择配置面板一般选择...
前端
2023-10-29
0
32
子集和问题
#include<bits/stdc++.h> using namespace std; bool used[1005]; int sum=0;//解的个数 int n,c,s=0;//和 int a[1005],b[1005];//后缀和 void dfs(int i) { if...
C++
2023-10-29
0
19
N皇后(dfs回溯)
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll a[10]; ll n,cnt,sum=1; bool check(ll x,ll y) { for(ll i=1;i<=x;i++) ...
C++
2023-10-28
0
36
素数环(dfs)
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll n,a[25]; ll f[25];//判断是否用过 bool isprime(ll n) { if(n==1) return false...
C++
2023-10-23
0
39
mex和gcd的乘积
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll N=1e5+5; ll a[N],p=0,ans=0; int main() { ios::sync_with_stdio(fal...
C++
2023-10-22
0
20
欧几里得算法和扩展欧几里得算法
扩展欧几里得算法 给定 n对正整数 ai,bi,对于每对数,求出一组 xi,yi,使其满足 ai×xi+bi×yi=gcd(ai,bi)。 输入格式 第一行包含整数 n。 接下来 n行,每行包含两个整数 ai,bi。 输出格式 输出共 n 行,对于每组 ai,bi,求出一组满足条件的 xi,yi,每...
C++
2023-10-10
0
31
c++小知识点:upper_bound
https://blog.csdn.net/weixin_53225765/article/details/122798643
C++
2023-10-09
0
19
循环嵌套
#include <bits/stdc++.h> using namespace std; int arr[100005]; void dfs(int n,int m,int i,int a,int p) { if(n==0&&i==m+1) { int ...
C++
2023-10-08
0
22
首页
上一页
1
2
3
下一页
末页