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