結果

問題 No.2282 Boxed Nim
ユーザー shobonvip
提出日時 2023-04-28 21:21:38
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 4,051 ms
コンパイル使用メモリ 251,340 KB
最終ジャッジ日時 2025-02-12 14:45:13
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

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

typedef modint998244353 mint;
typedef long long ll;

int main(){
	int n; cin >> n;
	int x = 0;
	for (int i=0; i<n; i++){
		int a; cin >> a;
		if (a == 0){
			x ^= 1;
		}
	}
	if (x > 0) cout << "First\n";
	else cout << "Second\n";
}
0