結果
| 問題 |
No.2282 Boxed Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-30 20:56:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 543 bytes |
| コンパイル時間 | 1,640 ms |
| コンパイル使用メモリ | 165,188 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-19 10:35:53 |
| 合計ジャッジ時間 | 3,273 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
// Problem: No.2282 Boxed Nim
// Contest: yukicoder
// URL: https://yukicoder.me/problems/no/2282
// Memory Limit: 512 MB
// Time Limit: 2000 ms
//
// Powered by CP Editor (https://cpeditor.org)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void slove() {
int n;
scanf("%d", &n);
int cnt = 0;
for (int i = 1; i <= n; i++) {
int c;
scanf("%d", &c);
if (!c) cnt++;
}
if (cnt & 1) puts("First");
else puts("Second");
}
int main() {
int T = 1;
// scanf("%d", &T);
while (T--) {
slove();
}
return 0;
}