自用模板
来源:互联网 发布:java web ssm项目源码 编辑:程序博客网 时间:2024/04/28 09:28
#include <map>#include <set>#include <cmath>#include <ctime>#include <queue>#include <cstdio>#include <vector>#include <string>#include <bitset>#include <cstring>#include <cstdlib>#include <iostream>#include <algorithm>using namespace std;#ifndef unix #define lld "%I64d" #define llu "%I64u"#else #define lld "%lld" #define llu "%llu"#endif#define FOR(a,b,c) for(int (a)=b;(a)<=(c);++(a))#define FORD(a,b,c) for(int (a)=b;(a)>=(c);--(a))#define FORV(a,t,b) for(vector<t>::iterator a=b.begin();a!=b.end();++a)#define MAX(a,b) a=max(a,b)#define MIN(a,b) a=min(a,b)#define BLA printf("\n")#define pb push_back#define mp make_pair#define gc getchar#define RT return#define BB second#define AA first#define bk break#define LINF 0x3f3f3f3f3f3f3f3fll#define INF 0x3f3f3f3f#define eps 1e-8#define DINF 1e20//#define Generatortypedef long long ll;typedef unsigned ui;typedef unsigned long long ull;typedef pair<int,int> pii;typedef pair<ll ,ll > pll;const int MAXN= 0;const int MOD = 1000000007;template <class T> inline void CLR(T &g) {T t;swap(t,g);}template <class T> inline void CLR(T &g,int a){memset(g,a,sizeof g);}template <class T> inline void CPY(T &a,T &b) {memcpy(a,b,sizeof a);}template <class T> inline bool inr(T a,T b,T c) {RT (a>=b && a<=c);}inline int acc(int a,int b) {RT !!(a & (1<<b-1));}inline int fil(int a,int b,int c) {RT a & ~(1<<b-1) | (1<<b-1)*c;}int N,M,K,Q;int main(){#ifndef Generator#ifndef ONLINE_JUDGEfreopen("input.txt" ,"r",stdin );freopen("output.txt","w",stdout);#endif#endif#ifdef Generatorfreopen("input.txt","w",stdout);srand((ui)time(NULL));#endifint T,o=0;}
0 0
- 自用模板
- 自用模板
- 自用 模板
- 自用模板
- 【自用模板】数位dp
- 【自用模板】贪心
- 【自用模板】二分dp
- [自用模板]持续更新!
- 排序模板(自用)
- C++自用模板
- 【自用模板】广度优先搜索
- 半平面交自用模板
- 自用头模板待更新...
- 【自用模板】高精度GCD(二进制)
- 自用顺序栈模板(初级)
- 自用的LaTeX模板(持续更新)
- [自用]门户网站模板-招标公告
- ACM自用常用模板(c++版)
- C++ RasDial之调用RasEnumEntries遍历系统中存在的宽带连接名称
- HOJ 12811 单词对比(很巧的处理方法,运用26个字母的个数)
- Python学习笔记02 变量和程序的编写
- uva 1541 - To Bet or Not To Bet(记忆化+概率)
- 教大家怎么识别苹果手机真假
- 自用模板
- java Callable与Future:从任务中产生返回值
- 【面试】经验网站合计
- HDU 1598 find the most comfortable road (最小生成树) >>
- hdu 2572 终曲
- ZOJ-1218
- 8.2-走格子
- open方法打开其他页面
- HDU2122 Ice_cream’s world III 【最小生成树】