跳到正文

剪贴板

剪贴板 2mdqw13r

原文
剪贴板信息

剪贴板信息

收录
更新
  • 非void型函数不返回值开o2会炸

  • for(int i=p[x];i!=-1;++i){}

  • 这份代码中的n是在变的

  • 记得删调试语句

  • sort默认从小到大

  • 分块判断 if (bel[l]==bel[r])后记得return

  • 不要学奇奇怪怪的算法,提升思维能力才是最重要的

  • 19198111 19198133 19198147 19198159

C++
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
typedef long double ld;

typedef int T;
T rd() {
    T x=0,f=1;char ch=getchar();
    while('0'>ch||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
    while('0'<=ch&&ch<='9'){x*=10;x+=ch-'0';ch=getchar();}
    return x*f;
}

#define fi first
#define se second
#define mk make_pair
#define lp (tr[p].l)
#define rp (tr[p].r)

#define cmin(a,b) ((a)>(b)?(a)=(b):(a));
#define cmax(a,b) ((a)<(b)?(a)=(b):(a));
#define abs(a) ((a)>0?(a):(-a));
#define rg(x,y) for(int x=p[y];x!=-1;x=e[x].nxt)
#define iv e[i].v

const int maxn=1e5+10,inf=0x7fffffff,mod=998244353;
const double eps=1e-8;

int main() {

	return 0;
}

原主页

没用的东西

任务清单