結果
| 問題 |
No.3120 Lower Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-24 14:54:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 459 bytes |
| コンパイル時間 | 412 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 43,428 KB |
| 最終ジャッジ日時 | 2025-04-24 14:54:57 |
| 合計ジャッジ時間 | 7,117 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 1 |
| other | TLE * 1 -- * 42 |
ソースコード
#!/usr/bin/env python3
import sys
def main():
data = sys.stdin.read().split()
if not data:
return
N = int(data[0])
A = list(map(int, data[1:1+N]))
# プレゼンテーションモード: 先攻・後攻のみ判定して終了
# 合理的な簡易戦略として総和の奇偶で決定
total = sum(A)
if total % 2 == 1:
print("First")
else:
print("Second")
if __name__ == '__main__':
main()