求教如何卡常

P2257 YY的GCD

~~您可以开O2~~
by zheysq_147 @ 2020-05-18 20:16:45


```signed```换成```int```,然后该写```longlong```的写```longlong```
by Magallan_forever @ 2020-05-18 20:18:05


@[吾乃会虎](/user/34883) 这题要卡常?
by Lates @ 2020-05-18 20:18:37


@[Ycx147_1218](/user/239761) ~~`-O2`只有`60`~~
by 吾乃会虎 @ 2020-05-18 20:19:58


@[吾乃会虎](/user/34883) define int longlong改掉
by Lates @ 2020-05-18 20:20:46


@[吾乃会虎](/user/34883) emmm 这题不用longlong 开longlong会慢
by Lates @ 2020-05-18 20:22:03


@[Lates](/user/119062) 我傻逼了Σ(☉▽☉"a 除了`ans`的定义和`write`的声明外,所有的`int`全部改成`signed`,过了?
by 吾乃会虎 @ 2020-05-18 20:25:18


@[吾乃会虎](/user/34883) emmm 我感觉只要main前写signed 就行
by Lates @ 2020-05-18 20:26:03


@[Lates](/user/119062) 并不是……我输入开`int`,其他位置全部`signed`都会`TLE`
by 吾乃会虎 @ 2020-05-18 20:28:51


int 比 long long 快了好多,我改了 int 就过了
by Ocean_Fish @ 2023-05-31 22:24:10


|