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
所以我认为这份代码珂能存在错误。