07 2023 档案
摘要:更改栈空间和内存占用 Linux 在当前终端使用 ulimit(-s)栈空间 kbytes,(-t)时间,单位为秒(-v)内存 kbytes, 例如 ulimit -s 262144 -t 1 -v 262144 为 Windows 添加编译选项-Wl,--stack=<nu
阅读全文
摘要:### exgcd ``` __int128 exgcd(__int128 as,__int128 bs,__int128 &x,__int128 &y){ if(bs==0){ x=1; y=0; return as; } __int128 ans=exgcd(bs,as%bs,y,x); y-=
阅读全文