yu55555 @ 2019-09-14 20:33:17
我用的cin三个点超时,加了个读入优化,就A了,这么恐怖的吗????
by optimize_2 @ 2019-09-14 20:34:39
慢好多
by yeaDonaby @ 2019-09-14 20:34:59
by Smile_Cindy @ 2019-09-14 20:35:14
@yu55555
废话你cin1e6个数不超时才怪。
如果要cin那么多个数一定要加
#define endl '\n'
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
}
by Zxc200611 @ 2019-09-14 20:37:04
#define endl '\n'
ios::sync_with_stdio(0);
cin.tie(0);
代码中加入这几句,cin快到飞起
by yu55555 @ 2019-09-14 20:39:49
@Alpha 嗯嗯,好的,谢谢
by CreeperLordVader @ 2019-09-14 20:45:27
@yu55555 最好养成写快读的习惯
by yu55555 @ 2019-09-14 22:22:17
@CreeperLordVader 嗯嗯,好的,谢谢