結果
| 問題 |
No.1208 anti primenumber game
|
| コンテスト | |
| ユーザー |
tamato
|
| 提出日時 | 2020-10-18 19:49:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 650 bytes |
| コンパイル時間 | 196 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 106,112 KB |
| 最終ジャッジ日時 | 2024-07-21 06:42:20 |
| 合計ジャッジ時間 | 5,821 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 WA * 10 |
ソースコード
mod = 1000000007
eps = 10**-9
def main():
import sys
input = sys.stdin.readline
N, M = map(int, input().split())
A = list(map(int, input().split()))
x = y = 0
flg = 1
for a in A:
if flg == 1:
if a != 1:
x += a - 1
y += 1 - M
else:
x += 1 - M
flg = 0
else:
if a != 1:
y += a - 1
x += 1 - M
else:
y += 1 - M
flg = 1
if x > y:
print("First")
else:
print("Second")
if __name__ == '__main__':
main()
tamato