結果
| 問題 | No.1208 anti primenumber game |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:04:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 107,928 KB |
| 最終ジャッジ日時 | 2025-06-12 20:10:33 |
| 合計ジャッジ時間 | 4,728 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 15 |
ソースコード
n, m = map(int, input().split())
a = list(map(int, input().split()))
total = 0
for i in range(n):
ai = a[i]
position = i + 1
if position % 2 == 1:
if ai >= 2:
contrib = ai + m - 2
else:
contrib = 1 - m
total += contrib
else:
if ai >= 2:
contrib = ai + m - 2
else:
contrib = 1 - m
total -= contrib
if total > 0:
print("First")
else:
print("Second")
gew1fw