結果

問題 No.2282 Boxed Nim
ユーザー YinGZHI12YinGZHI12
提出日時 2023-04-28 21:57:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 495 ms
コンパイル使用メモリ 62,956 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 20:56:25
合計ジャッジ時間 1,608 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	int ans=0,x;
	for(int i=1;i<=n;i++){
		cin>>x;
		if(x==0) ans++;
	}
	if(ans%2==0) cout<<"Second";
	else cout<<"First";
	return 0;
}
0