1、配置 basic
/* Code by pp_orange */ #include<bits/stdc++.h> #define m_p(a,b) make_pair(a,b) #define pb push_back #define ll long long #define ld long double #define inf 0x7fffffff // 7 f #define inff 0xfffffffffffffff // 15 f #define rep(i,l,r) for(int i=l;i<r;++i) #define repp(i,l,r) for(int i=l;i<=r;++i) #define per(i,r,l) for(int i=r-1;i>=l;--i) #define pper(i,r,l) for(int i=r;i>=l;--i) #define pii pair<int,int> #define fi first #define se second #define p_q priority_queue #define all(x) x.begin(),x.end() #define ls(x) ((x)<<1) #define rs(x) ((x)<<1|1) #define lb(x) ((x)&-(x)) #define vi vector<int> const int mod = 998244353; //#define int ll const int intsz = sizeof(int); using namespace std; inline int rd(){ int x(0),f(1);char ch=getchar(); while(!isdigit(ch)){if(ch=='-')f=-f;ch=getchar();} while (isdigit(ch)){x=(x<<3)+(x<<1)+(ch^48);ch=getchar();} return x*f; } ll pw(ll x,int d){ ll t = 1; for(;d;d>>=1,x=x*x%mod)if(d&1)t = t*x%mod; return t; } #define MAX 200005 signed main(){ //freopen("in.in","r",stdin); //freopen("out.out","w",stdout); return 0; }
g++ aa.cpp -o aa -g -std=c++14 && ./aa
2、鼠标中键重定向
xmodmap -e "pointer = 1 25 3 4 5 6 2"
xmodmap 是点击映射
pointer 指鼠标,默认是 1 2 3 4 5 6 7,2是中键,把2映射到undefined的位置即可屏蔽中键
易忘点 : 最后一个语句有引号,pointer 后面有等号
3、自动保存
-afterDelay
4、常用指令
a.cpp -o a -g -std=c++14 && ./a a.cpp -o a -g -std=c++14 -O2 a.cpp -o a -g -std=c++14 -fsanitize=undefined,address -ulimit -s 100000000 1e8 就完全够了,100多G
-Wall
-./T1 < qwq.in
-./T1 > qwq.out
5、对拍
system("diff a.out b.out"); // 挂拍的时候返回1,否则返回0,不过滤行末空格,文末回车
标签:noiLinux,std,ch,14,int,备忘,入场,out,define From: https://www.cnblogs.com/pp-orange/p/17982338