結果
| 問題 | 
                            No.1208 anti primenumber game
                             | 
                    
| コンテスト | |
| ユーザー | 
                             gew1fw
                         | 
                    
| 提出日時 | 2025-06-12 14:43:59 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 469 bytes | 
| コンパイル時間 | 203 ms | 
| コンパイル使用メモリ | 82,756 KB | 
| 実行使用メモリ | 107,960 KB | 
| 最終ジャッジ日時 | 2025-06-12 14:44:47 | 
| 合計ジャッジ時間 | 5,573 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / 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