警示后人:如果95pts TLE on #13
查看原帖
警示后人:如果95pts TLE on #13
1070754
lijunxi20231818楼主2024/11/9 22:56

不要用vector存图

加上快读

void write(int x) {static int sta[35];int top = 0;do {sta[top++] = x % 10, x /= 10;} while (x);while (top) putchar(sta[--top] + 48);}
int read() {int x = 0, w = 1;char ch = 0;while (ch < '0' || ch > '9') {  if (ch == '-') w = -1;ch = getchar();}while (ch >= '0' && ch <= '9') {x = x * 10 + (ch - '0'); ch = getchar(); }return x * w; }
2024/11/9 22:56
加载中...