QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#565148 | #9308. World Cup | Minami-373 | WA | 0ms | 3572kb | C++14 | 577b | 2024-09-15 20:25:54 | 2024-09-15 20:25:54 |
Judging History
answer
#include<iostream>
using namespace std;
int main() {
int T;
cin >> T;
int a[] = { 32,16,8,4,2,1 };
while (T--)
{
int id = 1;
int x;
cin >> x;
int ttt = 31;
while (ttt--)
{
int t;
cin >> t;
if (t < x)id++;
}
cout << id << endl;
if (id >= 0 && id <= 2)cout << a[0] << endl;
else if (id >= 3 && id <= 6)cout << a[1] << endl;
else if (id >= 7 && id <= 14)cout << a[2] << endl;
else if (id >= 15 && id <= 30)cout << a[3] << endl;
else if (id == 31)cout << a[4] << endl;
else if (id == 32)cout << a[5] << endl;
}
}
详细
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3572kb
input:
1 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
output:
32 1
result:
wrong answer 1st numbers differ - expected: '1', found: '32'