hhh
by QwQaQvQ @ 2019-12-20 13:22:35
你用cin读的操作类型,换成字符串用scanf读入试试,我之前被卡常这样就过了
by zzy2333 @ 2019-12-20 13:59:16
考虑 fread 的 read 么
```cpp
const static int _ = 1 << 20 ;
char fin[_] , * p1 = fin , * p2 = fin ;
inline char gc() { return (p1 == p2) && (p2 = (p1 = fin) + fread(fin , 1 , _ , stdin) , p1 == p2) ? EOF : * p1 ++ ; }
inline int read() {
bool sign = 1 ; char c = 0 ; while(c < 48) ((c = gc()) == 45) && (sign = 0) ;
int x = (c & 15) ; while((c = gc()) > 47) x = (x << 1) + (x << 3) + (c & 15) ;
return sign ? x : -x ;
}
```
by 1saunoya @ 2019-12-20 14:07:27
+1
与其是说在卡其它数据结构
不如说是在卡不写快读的QAQ
by DeepinC @ 2019-12-20 14:42:52
@[zzy2333](/user/118058) 谢谢大佬,过了
by momo5440 @ 2019-12-20 14:55:49
因为这个题要卡双log的可持久化线段树
by Cx114514 @ 2023-12-02 16:42:57