QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#571314#9320. Find the Easiest ProblemwangwxWA 0ms3576kbC++14597b2024-09-17 21:58:462024-09-17 21:58:47

Judging History

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

  • [2024-09-17 21:58:47]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3576kb
  • [2024-09-17 21:58:46]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
const int mxn=1e5+7;
int val,T,i,a[40];
signed main(){
    ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    cin >> T;
    while(T--){
        for(i=1;i<=32;i++)cin >> a[i];
        val=a[1];sort(a+1,a+33);
        for(i=1;i<=32;i++){
            if(a[i]==val)break;}

        if(i==32)cout << 1 << '\n' ;
        else if(i>=28)cout << 2 << '\n' ;
        else if(i>=14)cout << 4 << '\n' ;
        else if(i>=7)cout << 8 << '\n' ;
        else if(i>=3)cout << 16 << '\n' ;
        else cout << 32 << '\n' ;
    }
    return 0;
}

详细

Test #1:

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

input:

2
5
teamA A accepted
teamB B rejected
teamC A accepted
teamB B accepted
teamD C accepted
4
teamA A rejected
teamB A accepted
teamC B accepted
teamC B accepted

output:

1
32

result:

wrong answer 1st lines differ - expected: 'A', found: '1'