QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#574500#9308. World CupNijika_jiaWA 0ms3680kbC++14669b2024-09-18 22:25:052024-09-18 22:25:06

Judging History

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

  • [2024-09-18 22:25:06]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3680kb
  • [2024-09-18 22:25:05]
  • 提交

answer

#include<bits/stdc++.h>
#define ULL unsigned long long
#define LL long long
#define PII pair<int,int>
using namespace std;
const int N = 5*1e5 + 10,M = 2 * 1e4 + 10,inf = 0x3f3f3f3f;

int a[50];
int main()
{
    ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    int t;
    cin>>t;
    while (t--)
    {
        int n = 0;
        for(int i=1;i<=32;i++)
        {
            cin>>a[i];
            if(a[i]<=a[1]) n++;
        }
        if(n==31) puts("1");
        else if(n>=28) puts("2");
        else if(n>=15) puts("4");
        else if(n>=7) puts("8");
        else if(n>=3) puts("16");
        else puts("32");
    }
    return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3680kb

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:

2

result:

wrong answer 1st numbers differ - expected: '1', found: '2'