結果

問題 No.715 集合と二人ゲーム
ユーザー simamumusimamumu
提出日時 2018-07-13 23:19:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 61,740 KB
最終ジャッジ日時 2024-10-09 05:39:15
合計ジャッジ時間 8,829 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict 
import sys,heapq,bisect,math,itertools,string

N = int(input())
aa = list(map(int,input().split()))

aa.sort()

li = []
num = 1
for i in range(N-1):
	if aa[i+1]-aa[i] == 1:
		num += 1
	else:
		li.append(num)
		num = 1
li.append(num)		
ans = 0		

for i in li:
	if i <= 2 or i%2 == 1:
		ans += 1

if ans%2 == 0:
	print('Second')
else:
	print('First')
0