当前位置:网站首页>考研目录链接
考研目录链接
2022-07-01 06:25:00 【Keep--Silent】
301
高等数学
线性代数
概率论
408
数据结构
操作系统
第一章计算机系统概述
第二章进程和线程
第三章内存管理
第四章文件管理
第五章输入/输出(I/O)管理
#include<bits/stdc++.h>
using namespace std;
#define fir first
#define sec second
#define ll long long
#define debug(x) {
cout<<#x<<" = "<<x<<" ";}
#define debug1(a) {
debug(a);cout<<endl;}
#define debug2(a,b) {
debug(a);debug1(b);}
#define debug3(a,b,c) {
debug(a);debug2(b,c);}
#define debug4(a,b,c,d) {
debug(a);debug3(b,c,d);}
#define debugvector(x) {
cout<<#x<<": ";for(int asd=0;asd<x.size();asd++)cout<<x[asd]<<" ";cout<<endl;}
#define debugvec(x,n) {
cout<<#x<<": ";for(int asd=0;asd<n;asd++)cout<<x[asd]<<" ";cout<<endl;}
#define debugvp(x){
cout << #x << ": "; for (int asd = 0; asd < x.size(); asd++) printf("{%d,%d} ",x[asd].fir,x[asd].sec) ; cout << endl; }
#define debugmap(q) {
cout<<#q<<": ";for(auto x:q) printf("{%d,%d} ",x.first,x.second) ;cout<<endl; }
int lb(int i) {
return i & -i; }
void update(int i, int x) {
while (i <= n)vt[i] += x,i+=lb(i); }
int get(int i) {
int ans = 0;
while (i)ans += vt[i], i -= lb(i);
return ans;
}
ll qpow(ll x,ll n){
ll ans=1;
while(n){
if(n%2==1)ans=ans*x;
x=x*x;
n/=2;
}
return ans;
}
ll jc(int x,ll mol){
ll ans=1;
while(x>0)ans*=x--,ans%=mol;
return ans;
}
ll eular(ll n){
//欧拉函数,求与n互质的个数
ll ans = n;
for(int i=2; i*i <= n; ++i)
{
if(n%i == 0)
{
ans = ans/i*(i-1);
while(n%i == 0)
n/=i;
}
}
if(n > 1) ans = ans/n*(n-1);
return ans;
}
upper_bound()函数返回一个迭代器,指向该容器中键值>key的第一个元素。
lower_bound()函数返回一个迭代器,指向该容器中键值>=key的第一个元素。
num[upper_bound(num,num+size,a-1)-num-1]
ll gcd(ll a,ll b){
if(a<b)return gcd(b,a);
if(b==0)return a;
return gcd(b,a%b);
}
fraction inter = new fraction(numstring[0]);
for(int i=0;i<ans.size();i++){
cout<<ans[i];
if(i==ans.size()-1)cout<<endl;
else cout<<" ";
}
int gcd(int a,int b){
if(a<b)return gcd(b,a);
if(b==0)return a;
return gcd(b,a%b);
}
const int MANX=1010;
ll C[MAXN][MAXN];
void zuheshu(int MAXN,ll mol){
int i,j;
for(i=0;i<MAXN;i++){
C[i][i]=C[i][0]=1;
for(j=1;j<i;j++){
C[i][j]=(C[i-1][j-1]+C[i-1][j])%mol;
}
}
}
vector<int> zhishu(int n) {
int i,flag;
vector<int>v;
for(i=2; i<=n; i++) {
flag=1;
for(int j=0; j<v.size()&&v[j]*v[j]<=i; j++)
if(i%v[j]==0) {
flag=0;
break;
}
if(flag)v.push_back(i);
}
return v;
}
int getMax(int l, int r)
{
int mid=log2(r-l+1);
return max(num[mid][l],num[mid][r+1-(1<<mid)]);
}
int to = log2(n);
for (int j = 1; j <= to; j++)
{
for (i = 1;i+(1<<j)-1<=n; i++)
{
num[j][i] = max(num[j - 1][i], num[j - 1][i + (1 << (j - 1))]);
}
}
string a_to_b(string s, int a, int b) {
int ans = 0, i;
int k = 1;
int t;
for (i = s.size() - 1; i >= 0; i--) {
if (s[i] >= '0' && s[i] <= '9')t = s[i] - '0';
else t = s[i] - 'A'+10;
ans +=t* k;
k *= a;
}
k = 1;
string s2="";
while (ans) {
t = ans % b;
if (t <= 9)s2 += '0' + t;
else s2 += +'A' - 10+t;
ans /= b;
}
if (s2.size() == 0)s2 = "0";
return s2;
}
struct matrix {
ll num[10][10];
int n,m;
struct matrix operator *(struct matrix b) {
struct matrix c;
c.n=n;
c.m=b.m;
for(int i=0; i<c.n; i++)
for(int j=0; j<c.m; j++)
c.num[i][j]=0;
for(int i=0; i<n; i++) {
for(int j=0; j<b.m; j++) {
for(int k=0; k<m; k++) {
c.num[i][j]+=num[i][k]*b.num[k][j];
c.num[i][j]%=mod;
}
}
}
return c;
}
};
边栏推荐
- [ManageEngine Zhuohao] the role of LAN monitoring
- 交换机配置软件具有的作用
- [ManageEngine] how to realize network automatic operation and maintenance
- C语言课设学生选修课程系统(大作业)
- C语言课设工资管理系统(大作业)
- Functions of switch configuration software
- 下载外文期刊的方法
- Application of IT service management (ITSM) in Higher Education
- C language course design student information management system (big homework)
- Minio error correction code, construction and startup of distributed Minio cluster
猜你喜欢
![[unity shader amplify shader editor (ASE) Chapter 9]](/img/f5/f0f6786406e149187e71c8e12cde0d.png)
[unity shader amplify shader editor (ASE) Chapter 9]

ManageEngine Zhuohao helps you comply with ISO 20000 standard (IV)
![[self use of advanced mathematics in postgraduate entrance examination] advanced mathematics Chapter 1 thinking map in basic stage](/img/54/f187e22ad69f3985d30376bad1fa03.png)
[self use of advanced mathematics in postgraduate entrance examination] advanced mathematics Chapter 1 thinking map in basic stage
![[unity shader ablation effect _ case sharing]](/img/e3/464f1cf426e8c03ce3d538ed9cf4bc.png)
[unity shader ablation effect _ case sharing]
![[ITSM] what is ITSM and why does it department need ITSM](/img/e1/85b5f00f124829b6a6b40c5cf621bd.png)
[ITSM] what is ITSM and why does it department need ITSM
![[unity shader stroke effect _ case sharing first]](/img/bd/5cd1bef24e6b6378854114c2c05bd9.png)
[unity shader stroke effect _ case sharing first]

On siem

JMM详解

Teach you how to implement a deep learning framework

async 与 await
随机推荐
idea 好用插件汇总!!!
HDU - 1501 zipper (memory deep search)
Async and await
【Unity Shader 描边效果_案例分享第一篇】
C语言课设学生考勤系统(大作业)
sci-hub如何使用
浅谈SIEM
请求模块(requests)
【#Unity Shader#Amplify Shader Editor(ASE)_第九篇】
手把手教你实现一个深度学习框架...
【ManageEngine卓豪】用统一终端管理助“欧力士集团”数字化转型
存储函数学习笔记
SystemVerilog learning-07-class inheritance and package use
C language course set up student elective course system (big homework)
C language course design student information management system (big homework)
SQL学习笔记九种连接2
[ManageEngine Zhuohao] mobile terminal management solution, helping the digital transformation of Zhongzhou aviation industry
【ManageEngine】如何实现网络自动化运维
[ITSM] what is ITSM and why does it department need ITSM
How does the port scanning tool help enterprises?