QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#774465 | #9784. Donkey and Puss in Boots | ucup-team5697# | WA | 0ms | 3692kb | C++14 | 565b | 2024-11-23 13:18:28 | 2024-11-23 13:18:28 |
Judging History
answer
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
#include <map>
#define mems(x, v) memset(x, v, sizeof x)
#define mcpy(x, y) memcpy(x, y, sizeof x)
using namespace std;
typedef pair <int, int> pii;
typedef long long ll;
typedef unsigned long long ull;
typedef long double wisdom;
map <int, int> cnt;
int main() {
int n; scanf("%d", &n);
for (int i = 1, x; i <= n; i++) scanf("%d", &x), cnt[x]++;
for (auto [x, y] : cnt) if (y & 1) return puts("Donkey"), 0; puts("Puss in Boots");
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3568kb
input:
2 2 2
output:
Puss in Boots
result:
ok single line: 'Puss in Boots'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
4 0 47 0 0
output:
Donkey
result:
ok single line: 'Donkey'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
4 0 47 0 0
output:
Donkey
result:
ok single line: 'Donkey'
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3612kb
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'