QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#786757#9738. Make It DivisibleyeVegeTableWA 14ms10456kbPython3374b2024-11-26 23:18:062024-11-26 23:18:07

Judging History

你现在查看的是最新测评结果

  • [2024-11-27 18:44:44]
  • hack成功,自动添加数据
  • (/hack/1263)
  • [2024-11-26 23:18:07]
  • 评测
  • 测评结果:WA
  • 用时:14ms
  • 内存:10456kb
  • [2024-11-26 23:18:06]
  • 提交

answer

def solve():
    T = int(input())
    for _ in range(T):
        n, k = map(int, input().split())
        a = list(map(int, input().split()))
        if len(set(a)) == 1:
            # All elements are equal; any x in [1, k] will work
            print(k)
        else:
            # Elements are not all equal; no x will make the array good
            print(0)

詳細信息

Test #1:

score: 0
Wrong Answer
time: 14ms
memory: 10456kb

input:

3
5 10
7 79 1 7 1
2 1000000000
1 2
1 100
1000000000

output:


result:

wrong answer 1st lines differ - expected: '3 8', found: ''