結果
問題 |
No.2282 Boxed Nim
|
ユーザー |
|
提出日時 | 2023-04-28 21:27:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 254 bytes |
コンパイル時間 | 1,983 ms |
コンパイル使用メモリ | 191,048 KB |
最終ジャッジ日時 | 2025-02-12 14:50:52 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; int cnt0=0; for(int i=0;i<N;i++){ int A; cin>>A; if(A==0)cnt0+=1; } cout<<(cnt0%2?"First\n":"Second\n"); }