Submission #3842580


Source Code Expand

Copy
#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
#define MOD 1000000007
#define INF 0x3f3f3f3f
#define INFL 0x3f3f3f3f3f3f3f3f
#define EPS (1e-10)
using namespace std;
typedef long long ll;
typedef pair<int,int>P;

int a[200000];
int main(){
	int n;scanf("%d",&n);
	ll sum=0;
	rep(i,n){
		scanf("%d",&a[i]);
		sum+=a[i];
	}
	puts(sum%2?"first":"second");
}

Submission Info

Submission Time
Task D - Harlequin
User autumn_eel
Language C++14 (GCC 5.4.1)
Score 0
Code Size 390 Byte
Status
Exec Time 18 ms
Memory 640 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:13:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  int n;scanf("%d",&n);
                      ^
./Main.cpp:16:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);
                    ^

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01, a02
All 0 / 500 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 1 ms 256 KB
a02 1 ms 256 KB
b03 1 ms 256 KB
b04 1 ms 256 KB
b05 1 ms 256 KB
b06 1 ms 256 KB
b07 1 ms 256 KB
b08 1 ms 256 KB
b09 1 ms 256 KB
b10 1 ms 256 KB
b11 1 ms 256 KB
b12 8 ms 640 KB
b13 13 ms 640 KB
b14 13 ms 640 KB
b15 8 ms 640 KB
b16 12 ms 640 KB
b17 12 ms 640 KB
b18 12 ms 640 KB
b19 18 ms 640 KB
b20 12 ms 640 KB
b21 12 ms 640 KB
b22 12 ms 640 KB