QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#855524#7029. Xu Xiake in Henan ProvincesutuAC ✓2ms3720kbC++20612b2025-01-12 22:34:012025-01-12 22:34:02

Judging History

This is the latest submission verdict.

  • [2025-01-12 22:34:02]
  • Judged
  • Verdict: AC
  • Time: 2ms
  • Memory: 3720kb
  • [2025-01-12 22:34:01]
  • Submitted

answer

#include <bits/stdc++.h>

using namespace std;
#define endl "\n"
typedef long long ll;

void solved() {
  int a[4], k = 0;
  for (int i = 0; i < 4; i++) {
    cin >> a[i];
    if (a[i] > 0) k++;
  }
  if (k == 0) cout << "Typically Otaku" << endl;
  if (k == 1) cout << "Eye-opener" << endl;
  if (k == 2) cout << "Young Traveller" << endl;
  if (k == 3) cout << "Excellent Traveller" << endl;
  if (k == 4) cout << "Contemporary Xu Xiake" << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) solved();

  return 0;
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3720kb

input:

5
0 0 0 0
0 0 0 1
1 1 0 0
2 1 1 0
1 2 3 4

output:

Typically Otaku
Eye-opener
Young Traveller
Excellent Traveller
Contemporary Xu Xiake

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 2ms
memory: 3604kb

input:

10000
0 3 0 0
0 0 1 0
0 0 0 0
0 3 0 22
0 3 0 2
2 0 0 0
9 0 6 37
0 0 0 0
9 2 0 0
1 0 0 0
0 0 5 1
3 6 0 0
2 3 8 0
0 3 0 1
0 25 0 2
0 2 0 0
3 0 0 0
3 13 0 6
0 0 0 3
0 0 28 0
0 0 3 1
21 32 0 0
2 0 0 0
45 0 0 12
4 0 0 0
0 0 0 6
0 0 0 0
24 0 3 0
0 5 28 0
1 10 10 2
0 7 0 0
3 1 24 1
2 2 0 78
0 0 41 0
6 4 0 ...

output:

Eye-opener
Eye-opener
Typically Otaku
Young Traveller
Young Traveller
Eye-opener
Excellent Traveller
Typically Otaku
Young Traveller
Eye-opener
Young Traveller
Young Traveller
Excellent Traveller
Young Traveller
Young Traveller
Eye-opener
Eye-opener
Excellent Traveller
Eye-opener
Eye-opener
Young Tr...

result:

ok 10000 lines