結果
| 問題 | No.2282 Boxed Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-28 21:56:40 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 248 ms |
| コンパイル使用メモリ | 73,108 KB |
| 実行使用メモリ | 9,924 KB |
| 最終ジャッジ日時 | 2026-09-25 13:23:57 |
| 合計ジャッジ時間 | 1,690 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}