http://go.helloworldroom.com/problem/12739
helloworld的测试用例有误。以 Test #1 的输入输出为例
输入: 1 3 -3 88 75 10 8 2 8 4 -3 -6 2 10 -3 -9 12 47 3 1 -4 1 10 66 0 0 输出: 3 1 1 3 1 1 3 1 1 12 5 6 15 1 6 11 2 3 wrong answer 11th words differ - expected: '1', found: '5'
即如下所示。
输入 8 1 8 4 -3 -6 2 10 -3 -9 12 0 0 我们的代码输出是 12 5 6 但,测试用例的答案应该是 12 1 2
但,实际上,这两个答案都是正确的。
此外,同样的代码,在其他网站(比如 http://poj.org/problem?id=2566 )也是OK,在helloworld则不通过。