今天被读入优化坑惨了
因为一道随便水水就能过的屎题,调了一下午我一直以为是我STL的锅。
以后校OJ上读入量超过10mb的题目,不写这个优化,我名字倒着写…
版本1
#include<cstdio>
#include<iostream>
using namespace std;
const int maxx=40000008;
char Input[maxx+5],*ipos;
#define read() (strtol(ipos,&ipos,10))
int main() {
fread(Input,maxx,1,stdin);ipos=Input;
int n=read();
//Do somet