蜜汁头文件&&slow slow read


slow slow read 板子

inline int read()
{
    int ans=0;
    char last=' ',ch=getchar();
    while(ch<'0'||ch>'9') last=ch,ch=getchar();
    while(ch>='0'&&ch<='9') ans=ans*10+ch-'0',ch=getchar();
    if(last=='-') ans=-ans;
    return ans;
}

 读字符,忽略掉没用的东西

inline char read()
{
    char c;
    do
    {
        c=getchar();
    }while(c==' '||c=='
'||c==''||c=='	');
}

安利一波优秀的头文件  感谢大巨佬LH  有些迷

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
using namespace std;

typedef long long ll;
typedef long double ld;
typedef pair<int,int> pr;
const double pi=acos(-1);

#define rep(i,a,n) for(int i=a;i<=n;i++)
#define per(i,n,a) for(int i=n;i>=a;i--)
#define Rep(i,u) for(int i=head[u];i;i=Next[i])
#define clr(a) memset(a,0,sizeof a)
#define pb push_back
#define mp make_pair
#define fi first
#define sc second

ld eps=1e-9;
ll pp=1000000007;
ll mo(ll a,ll pp)                //取模运算
{
if(a>=0 && a<pp)return a;

a%=pp;
if(a<0)a+=pp;
return a;
}
ll powmod(ll a,ll b,ll pp) //a^b%p=
{
ll ans
=1;

for(;b;b>>=1,a=mo(a*a,pp))
if(b&1)ans=mo(ans*a,pp);
return ans;
}

ll read() //快读
{ ll ans
=0; char last=' ',ch=getchar(); while(ch<'0' || ch>'9')last=ch,ch=getchar(); while(ch>='0' && ch<='9')ans=ans*10+ch-'0',ch=getchar(); if(last=='-')ans=-ans; return ans; }

BZOJ题号查找器

https://ruanx.pw/bzojch/bzojno.html

 神奇的网站

https://oi-wiki.org/

百度搜索oiwiki

图论画图板 

https://csacademy.com/app/graph_editor/

大字典

https://en.cppreference.com


2019.11.27

某离散数学学习web

https://www.icourse163.org/learn/NJTU-1002530017?tid=1206747210#/learn/announce

 

原文地址:https://www.cnblogs.com/xiaoyezi-wink/p/10656783.html