求助,WA+TLE

P1397 [NOI2013] 矩阵游戏

把scanf换成去掉同步的cin就AC了?
by AThousandSuns @ 2018-08-09 13:11:23


dalao,关键点不是在这里。 ``(n << 1ll) + (n << 3ll)``的运算结果是``int``. ``(n * 10ll)``的运算结果才是``long long``.
by watermoon @ 2018-08-09 16:45:02


@[AThousandSuns](/space/show?uid=72118)
by watermoon @ 2018-08-09 22:25:11


@[AThousandMoon](/space/show?uid=68148) 哦,感谢dalao……
by AThousandSuns @ 2018-08-09 22:26:21


|