QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#796511#9784. Donkey and Puss in Bootsucup-team1264#WA 15ms10748kbPython3137b2024-12-01 20:05:262024-12-01 20:05:27

Judging History

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

  • [2024-12-01 20:05:27]
  • 评测
  • 测评结果:WA
  • 用时:15ms
  • 内存:10748kb
  • [2024-12-01 20:05:26]
  • 提交

answer

n = int(input())
a = list(map(int, input().split()))

a.sort()

a = a[:-1]

print("Donkey" if sum(a) < n else "Puss in Boots")


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 15ms
memory: 10580kb

input:

2
2 2

output:

Puss in Boots

result:

ok single line: 'Puss in Boots'

Test #2:

score: 0
Accepted
time: 15ms
memory: 10680kb

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #3:

score: 0
Accepted
time: 9ms
memory: 10644kb

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #4:

score: 0
Accepted
time: 8ms
memory: 10612kb

input:

10
5 7 3 0 2 0 0 1 0 0

output:

Puss in Boots

result:

ok single line: 'Puss in Boots'

Test #5:

score: 0
Accepted
time: 15ms
memory: 10576kb

input:

5
8 5 1 1 0

output:

Puss in Boots

result:

ok single line: 'Puss in Boots'

Test #6:

score: 0
Accepted
time: 9ms
memory: 10620kb

input:

9
5 13 1 0 0 0 0 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #7:

score: 0
Accepted
time: 9ms
memory: 10652kb

input:

7
13 0 1 0 0 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #8:

score: -100
Wrong Answer
time: 14ms
memory: 10748kb

input:

5
0 0 0 0 0

output:

Donkey

result:

wrong answer 1st lines differ - expected: 'Puss in Boots', found: 'Donkey'