跳到正文

剪贴板

剪贴板 8w0nfjh4

原文
剪贴板信息

剪贴板信息

收录
更新

现在的模版

C++
#include<bits/stdc++.h>
#define int long long
#define T true
#define F false
#define fi first
#define se second
#define re return
#define cn cout<<'\n'
#define IA INT_MAX
#define IN INT_MIN

using namespace std;

inline int read(){
	int x = 0, f = 1;
	char ch = getchar();
	while (ch < '0' || ch > '9') {
		if (ch == '-')f = -1;
		ch = getchar();
	}
	while (ch <= '9' && ch >= '0'){
		x = (x << 1) + (x << 3) + (ch ^ 48);
		ch = getchar();
	}
	re x * f;
}

const int N=1e6+5;
int a[N];

void solve()
{

	cn;
	re;
}
signed main()
{
	int _=1;
	//cin>>_;
	while(_--) solve();
	re 0;
}

10月还在用的模版

C++
#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;

signed main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);


	return 0;
}

为什么现在不用关闭同步流了?

进食后人:不要同时用快读和关闭同步流

因为一次模拟赛,我同时用了快读和关闭同步流,导致那道题一直WA,其实代码本身是没有问题的。