QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#782486#9784. Donkey and Puss in BootsBambibiWA 0ms3704kbC++20325b2024-11-25 20:13:212024-11-25 20:13:21

Judging History

This is the latest submission verdict.

  • [2024-11-25 20:13:21]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3704kb
  • [2024-11-25 20:13:21]
  • Submitted

answer

#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
ll n;
ll a[100010];

int main()
{
	cin>>n;
	int a0=0;
	for(int i=1;i<=n;i++)
	{
		cin>>a[i];
		if(a[i]==0) a0++;
	}
	if(a0==n-1)
	{
		cout<<"Donkey"<<endl;
	}
	else
	{
		cout<<"Puss in Boots"<<endl;
	}
	
	
	
	
	
	
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
2 2

output:

Puss in Boots

result:

ok single line: 'Puss in Boots'

Test #2:

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

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #3:

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

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #4:

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

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: 3568kb

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: 3692kb

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'