Submission #19435770


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n, m;
    cin >> n;
    for(int i = 0; i < n; i++){
        cin >> m;
        if(m % 2 == 1){
            cout << "first" << endl;
            break;
        }
    }
    if(m % 2 == 0) cout << "second" << endl;
}

Submission Info

Submission Time
Task D - Harlequin
User Ysdr
Language C++ (GCC 9.2.1)
Score 500
Code Size 293 Byte
Status AC
Exec Time 43 ms
Memory 3576 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 500 / 500
Status
AC × 2
AC × 22
Set Name Test Cases
Sample a01, a02
All a01, a02, b03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15, b16, b17, b18, b19, b20, b21, b22
Case Name Status Exec Time Memory
a01 AC 6 ms 3464 KB
a02 AC 2 ms 3344 KB
b03 AC 2 ms 3512 KB
b04 AC 2 ms 3548 KB
b05 AC 3 ms 3576 KB
b06 AC 2 ms 3456 KB
b07 AC 2 ms 3460 KB
b08 AC 2 ms 3376 KB
b09 AC 3 ms 3484 KB
b10 AC 2 ms 3460 KB
b11 AC 2 ms 3320 KB
b12 AC 2 ms 3512 KB
b13 AC 42 ms 3552 KB
b14 AC 43 ms 3488 KB
b15 AC 24 ms 3468 KB
b16 AC 40 ms 3472 KB
b17 AC 40 ms 3456 KB
b18 AC 39 ms 3460 KB
b19 AC 43 ms 3456 KB
b20 AC 37 ms 3376 KB
b21 AC 33 ms 3468 KB
b22 AC 5 ms 3344 KB