关同步流放 freopen 后面!
关同步流之后别混用!别写 fclose
https://www.luogu.com.cn/blog/DPprince/2022-csp-pre
freopen("game.in","r",stdin);
freopen("game.out","w",stdout);
cin.tie(0); ios::sync_with_stdio(false);先想根号好不好,别忘了最后一个块的右界
#define int long long 在写之前一定确定好是否需要注释!!!!
记得测内存!
#include <bits/stdc++.h>
#define int long long
#define pb push_back
using namespace std;
signed main() {
cin.tie(0); ios::sync_with_stdio(false);
return 0;
}-std=c++14 -Wl,--stack=123456789,-Ofast我的博客
大佬们的blog
一些总结
关键字不能用!
int rd() {
int f=1,sum=0; char ch=getchar();
while(!isdigit(ch)) {if(ch=='-') f=-1;ch=getchar();}
while(isdigit(ch)) {sum=(sum<<3)+(sum<<1)+ch-'0';ch=getchar();}
return sum*f;
}
void pr(int x) {
if(x<0) {putchar('-');x=-x;}
if(x>9) pr(x/10);
putchar(x%10+'0');
}
while(1) {
system("shuju.exe>in.txt");
system("baoli.exe<in.txt>out1.txt");
system("my.exe<in.txt>out2.txt");
system("fc out1.txt out2.txt||pause");
}
#include <bits/stdc++.h>
using namespace std;
mt19937 RAND(time(0));
int get(int l,int r) {
return RAND()%(r-l+1)+l;
}
int main() {
}