数据是这样的
4 4 4 1 2 2 2 3 3 3 4 2 1 4 2 1 1 4 2 1 4 1 1 4 1 1 4
没有回车
如果您这样子写
inline char nc() { if(p1 == pend) { p1 = buf; pend = buf + fread(buf, 1, BUF_SIZE, stdin); // if(p1 == pend) { // return -1; // } } return *p1++; }
就会WA掉QAQ
这还是第一次见没有回车的...