QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#757559#9483. Maximize ArrayPleaseHackme#WA 0ms3596kbC++20378b2024-11-17 10:34:182024-11-17 10:34:19

Judging History

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

  • [2024-11-17 10:34:19]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3596kb
  • [2024-11-17 10:34:18]
  • 提交

answer

#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
void solve(){
    int n;cin>>n;
    for(int i=1;i<=n;i++){
        int p;cin>>p;
    }
    if(n%2) cout<<"First\n";
    else cout<<"Second\n";
}
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    int t=1;cin>>t;
    while(t--){
        solve();
    }
}

詳細信息

Test #1:

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

input:

9 3
1 2 3 4 1 2 3 4 1

output:

First
Second
First
First
First
First
First
First
First

result:

wrong answer 1st words differ - expected: '4', found: 'First'