关于第二篇题解
查看原帖
关于第二篇题解
313849
mesan楼主2020/7/28 13:34

Link

题目的输入格式部分写了:

The input will be an integer indicating the n'th bulb in a corridor. Which is less then or equals 2^31-1.A zero indicates the end of input. You should not process this input.

也就是说第一个数并非表示测试的组数。

但是第二篇题解的循环部分写的是:

for(register long long i=1; i<=n;++i)

接着,他的分析部分写到:

咦,Yes 怎么和 No 反了啊……
没事,顺序换一下~~~

奇怪的改代码方式增加了。

然后我好奇地点开他的提交记录,发现他并没有 AC 此题……

https://www.luogu.com.cn/record/list?pid=UVA10110&user=Mikemao666%20&page=1

所以我认为这份代码珂能存在错误。

2020/7/28 13:34
加载中...