QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#789566 | #9784. Donkey and Puss in Boots | Quick_Kk | WA | 0ms | 3696kb | C++14 | 227b | 2024-11-27 20:52:34 | 2024-11-27 20:52:36 |
Judging History
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<n) puts("Donkey");
else puts("Puss in Boots");
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3676kb
input:
2 2 2
output:
Puss in Boots
result:
ok single line: 'Puss in Boots'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
4 0 47 0 0
output:
Donkey
result:
ok single line: 'Donkey'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
4 0 47 0 0
output:
Donkey
result:
ok single line: 'Donkey'
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3632kb
input:
10 5 7 3 0 2 0 0 1 0 0
output:
Donkey
result:
wrong answer 1st lines differ - expected: 'Puss in Boots', found: 'Donkey'