結果
問題 |
No.2282 Boxed Nim
|
ユーザー |
|
提出日時 | 2023-02-10 21:07:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 880 ms |
コンパイル使用メモリ | 66,392 KB |
最終ジャッジ日時 | 2025-02-10 12:00:10 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; void solve() { int n; cin >> n; int c = 0; for(int i = 0; i < n; i++) { int a; cin >> a; c += !a; } cout << (c % 2 ? "First" : "Second") << endl; } int main() { solve(); }