好
by Judy039 @ 2024-04-13 15:44:50
%%%
by Lontano_Island @ 2024-04-19 20:31:39
补一个:
```c
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
```
喜欢cin的可以加上,相当于取消cincout缓冲区,可以极大提升cincout的效率。注意加上上面两行后,就不要cin和scanf,cout和printf混用了
另外,我喜欢快读快写[doge]
贴一个板子在这儿
```c
namespace fastIO {
inline int read() {
int res = 0, f = 1;
char ch = getchar();
while( !(ch >= '0' && ch <= '9') ) {
if(ch == '-') f = -1;
ch = getchar();
}
while(ch >= '0' && ch <= '9') {
res = (res << 1) + (res << 3) + (ch ^ 48);
ch = getchar();
}
return res * f;
}
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);
}
void writeln(int x) {
write(x);
putchar('\n');
}
}
```
by WZwangchongming @ 2024-05-02 14:52:51