結果
| 問題 | 
                            No.2282 Boxed Nim
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-04-28 21:56:40 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 203 bytes | 
| コンパイル時間 | 437 ms | 
| コンパイル使用メモリ | 63,104 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-17 20:54:35 | 
| 合計ジャッジ時間 | 1,471 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 17 | 
ソースコード
#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;
}