从ao神处偷取的头文件
2024-08-27 05:56:50
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define all(x) x.begin(), x.end()
#define mem(x, y) memset(x, y, sizeof(x))
#define what_is(x) cerr << "Line " << __LINE__ << ": " << #x << " is " << (x) << endl;
#define suf_zero(x) __builtin_ffs(x)
#define pre_zero(x) __builtin_clz(x)
#define num_one(x) __builtin_popcount(x)
#define error(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
#define lson l, mid, rt<<1
#define rson mid+1, r, rt<<1|1
void err(istream_iterator<string> it) {cerr<<endl;}
template<typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
cerr << *it << " = " << a << " , ";
err(++it, args...);
} // fast IO
namespace fastIO{
#define BUF_SIZE 100000
// fread -> read
bool IOerror = ;
inline char nc(){
static char buf[BUF_SIZE], *p1 = buf+BUF_SIZE,
*pend = buf+BUF_SIZE;
if(p1==pend){
p1 = buf;
pend = buf+fread(buf, , BUF_SIZE, stdin);
if(pend==p1){
IOerror = ;
return -;
}
}
return *p1++;
}
inline bool blank(char ch){return ch==' '||ch=='\n'||ch=='\r'||ch=='\t';}
inline void read(int &x){
char ch;
while(blank(ch=nc()));
if(IOerror)return ;
for(x=ch-'';(ch=nc())>=''&&ch<='';x=x*+ch-'');
}
#undef BUF_SIZE
}
using namespace fastIO;
//#include<ext/pb_ds/assoc_container.hpp>
//#include<ext/pb_ds/hash_policy.hpp>
//using namespace __gnu_pbds;
//ll sum_of_sq(ll n){n%=mod;return n*(n+1)%mod*(2*n+1)%mod*inv6%mod;}
const double PI = acos(-1.0);
const double eps = 1e-;
const ll mod = 1e9+;
ll qp(ll b, ll n){ll r=;if(n<)n+=mod-;b%=mod;for(;n;n>>=,b=b*b%mod)if(n&)r=r*b%mod;return r;}
//cc_hash_table<ll, ll> S;
去掉了一些自己不太可能用上的。
最新文章
- 免费开源分布式系统日志收集框架 Exceptionless
- Struts2 源码分析——配置管理之PackageProvider接口
- 【Java每日一题】20161222
- Sublime Text 3 个人开发习惯
- Git Pro - (1) 基础
- redis中使用redis-dump导出、导入、还原数据实例
- ABAP--关于ABAP流程处理的一些命令的说明(stop,exit,return,check,reject)
- wildfly jsf 文件 上传后 可以下载 访问
- linux 硬件信息
- Unity Layout碰撞检测
- 程序员的自我救赎---3.1:理解Oauth2.0
- AspNetCore 使用log4net+IExceptionFilter 记录错误日志
- Flutter之CustomView
- servlet dispatcher .forward(request, response); 进入其它servlet【原】
- Linux下的换行符\n\r以及txt和word文档的使用
- HTML中input type=";text";和type=";password"; 显示的长度不一样
- jquery另外一种类似tab切换效果
- springMVC非注解常用的";处理器映射器";、";适配器";、";处理器";
- ubuntu安装phpVirtualBox web服务
- session没保存,登录失败
热门文章
- VC++_错误 无法打开包括文件“glglut.h” No such file or directory 怎么办
- OCP47:155
- Intel Edision —— 从SSH无法连接到systemd
- [UnityShader3]溶解与重现效果
- 高仿美团iOS版,版本5.7
- Linq To Sql进阶系列(六)用object的动态查询与保存log篇
- LeetCode 226 Invert Binary Tree(转换二叉树)
- intellij IDEA 更新java后不用重启tomcat
- Git 和 SVN 之间的五个基本区别
- Mac JDK 多版本共存