QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#825978#9784. Donkey and Puss in BootsJavier_Rivera#WA 0ms3676kbC++17473b2024-12-22 01:16:562024-12-22 01:16:56

Judging History

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

  • [2024-12-22 01:16:56]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3676kb
  • [2024-12-22 01:16:56]
  • 提交

answer

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

using ll =  long long;
using vi = vector<int>;

#define SZ(x) ((int)x.size())
#define FOR(i,a,b) for(int i = (int)a; i < (int)b; i++)

signed main() {
  cin.tie(0)->sync_with_stdio(0);

  int n,cntnot0 =0;
  cin >> n;
  FOR(i,0,n){
    int x;
    cin >> x;
    cntnot0 += (x != 0);
  }
  if(cntnot0 == 1){
    cout << "Donkey" << '\n';
  }else{
    cout << "Puss in Boots" << '\n';
  }

  return 0;
}

詳細信息

Test #1:

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

input:

2
2 2

output:

Puss in Boots

result:

ok single line: 'Puss in Boots'

Test #2:

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

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #3:

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

input:

4
0 47 0 0

output:

Donkey

result:

ok single line: 'Donkey'

Test #4:

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

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

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

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'