QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#789555#9784. Donkey and Puss in BootsQuick_KkWA 0ms3700kbC++14228b2024-11-27 20:49:452024-11-27 20:49:46

Judging History

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

  • [2024-11-27 20:49:46]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3700kb
  • [2024-11-27 20:49:45]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int n,a[100005],cnt;
int main(){
    cin>>n;
    for(int i=1;i<=n;++i) cin>>a[i],cnt+=(a[i]>0);
    if(cnt==1) puts("Donkey");
    else puts("Puss in Boots");
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3632kb

input:

2
2 2

output:

Puss in Boots

result:

ok single line: 'Puss in Boots'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3692kb

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3552kb

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: 0ms
memory: 3644kb

input:

5
8 5 1 1 0

output:

Puss in Boots

result:

ok single line: 'Puss in Boots'

Test #6:

score: -100
Wrong Answer
time: 0ms
memory: 3700kb

input:

9
5 13 1 0 0 0 0 0 0

output:

Puss in Boots

result:

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