結果
問題 | No.1208 anti primenumber game |
ユーザー |
|
提出日時 | 2020-08-30 13:55:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 360 bytes |
コンパイル時間 | 459 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 33,856 KB |
最終ジャッジ日時 | 2024-11-15 07:04:18 |
合計ジャッジ時間 | 7,588 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 18 |
ソースコード
n, m = map(int, input().split())a = list(map(int, input().split()))a.sort(reverse=True)F = 0S = 0for i in range(n):if i % 2 == 0:F += a[i] - 1else:S += a[i] - 1if n % 2 == 0:if F > S:print("First")else:print("Second")else:if F - m > S:print("First")else:print("Second")