啊?(如果卡常/RE)
查看原帖
啊?(如果卡常/RE)
683859
complete_binary_tree楼主2024/5/17 21:50

啊?:

块长=n\sqrt n、n2\sqrt \frac n 2、500、300:TLE3点

块长=200:TLE1点

块长<=150:MLE

块长=175、185:TLE2点

块长=190:过啦?!

卡常:多试试,二分(三分)求出最优解

(附freadfwrite板子)

namespace FastIO{
    static char buf[10000000],*p1=buf,*p2=buf;
    #define gc p1==p2&&(p2=(p1=buf)+fread(buf,1,10000000,stdin),p1==p2)?EOF:*p1++;
    inline int read() {int res=0,w=0; char c=gc; while (!isdigit(c)) c=gc; while (isdigit(c)) res=(res<<1)+(res<<3)+(c^48),c=gc; if (w) res=-res; return res;}
    //inline void write(int x) {static int sta[35],top=0; do {sta[top++]=x%10,x/=10;}while (x); while (top) putchar(sta[--top]+48); putchar('\n');}
    inline void write(long long x) {static int sta[50],top=0; do {sta[top++]=x%10,x/=10;}while (x); while (top) putchar(sta[--top]+48); putchar('\n');}
};

RE:

其实是WA。因为你异或以后可能变成很大的数字。

抓篇题解过来拍就行了。

记住:最好m=1,不然你拍子会写的亿点点麻烦

2024/5/17 21:50
加载中...