Submission #3859978


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 main(){
	int n;scanf("%d",&n);
	bool flag=false;
	rep(i,n){
		int a;scanf("%d",&a);
		if(a%2)flag=true;
	}
	puts(flag?"first":"second");
}

Submission Info

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

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:12: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:15:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   int a;scanf("%d",&a);
                       ^

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01, a02
All 500 / 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 256 KB
b13 13 ms 256 KB
b14 13 ms 256 KB
b15 8 ms 256 KB
b16 12 ms 256 KB
b17 12 ms 256 KB
b18 12 ms 256 KB
b19 12 ms 256 KB
b20 12 ms 256 KB
b21 12 ms 256 KB
b22 12 ms 256 KB