TLE,开O2也不行

P3865 【模板】ST 表

加快读 本题卡常(
by _fairytale_ @ 2023-04-13 22:57:45


@[manyc](/user/826520) ![](https://cdn.luogu.com.cn/upload/image_hosting/4o6dq0lz.png)
by Wangzj512 @ 2023-04-13 22:59:46


`cin`耗费的时间会导致$TLE$
by Wangzj512 @ 2023-04-13 23:01:04


@[manyc](/user/826520) 使用``ios::sync_with_stdio(false)``关闭同步提速
by SDLTF_凌亭风 @ 2023-04-13 23:05:31


@[manyc](/user/826520) 建议把 endl 换成 '\n',减少刷新输出缓冲区。
by Untitled10032 @ 2023-04-13 23:18:10


卡点常但不换 IO 方式能过前十个点而得 80 分。
by ud2_ @ 2023-04-13 23:51:43


加个简易的 `std::to_chars` 快输就过了。
by ud2_ @ 2023-04-14 00:10:53


加上```ios::sync_with_stdio(false)``` ```cin.tie(0);```与```cout.tie(0)```;最后把```endl```改为```"\n"```就过了[评测记录](https://www.luogu.com.cn/record/107997037)
by qiuhuiyao @ 2023-04-14 12:58:29


|