結果

問題 No.715 集合と二人ゲーム
ユーザー simamumusimamumu
提出日時 2018-07-13 23:15:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 513 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 65,396 KB
最終ジャッジ日時 2024-04-17 11:29:33
合計ジャッジ時間 8,119 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 35 ms
11,392 KB
testcase_02 WA -
testcase_03 AC 38 ms
11,904 KB
testcase_04 WA -
testcase_05 AC 41 ms
12,416 KB
testcase_06 WA -
testcase_07 AC 44 ms
13,056 KB
testcase_08 WA -
testcase_09 AC 49 ms
13,696 KB
testcase_10 WA -
testcase_11 AC 54 ms
13,928 KB
testcase_12 WA -
testcase_13 AC 57 ms
14,764 KB
testcase_14 WA -
testcase_15 AC 58 ms
15,428 KB
testcase_16 WA -
testcase_17 AC 60 ms
15,664 KB
testcase_18 WA -
testcase_19 AC 65 ms
16,496 KB
testcase_20 WA -
testcase_21 AC 72 ms
17,372 KB
testcase_22 WA -
testcase_23 AC 70 ms
18,156 KB
testcase_24 WA -
testcase_25 AC 78 ms
18,340 KB
testcase_26 WA -
testcase_27 AC 81 ms
18,520 KB
testcase_28 WA -
testcase_29 AC 84 ms
19,020 KB
testcase_30 WA -
testcase_31 AC 74 ms
17,528 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 32 ms
11,008 KB
testcase_36 AC 32 ms
11,008 KB
testcase_37 AC 31 ms
11,008 KB
testcase_38 AC 32 ms
11,136 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 32 ms
11,136 KB
testcase_42 WA -
testcase_43 AC 33 ms
11,136 KB
testcase_44 WA -
testcase_45 AC 33 ms
11,136 KB
testcase_46 WA -
testcase_47 AC 33 ms
11,008 KB
testcase_48 WA -
testcase_49 AC 33 ms
11,136 KB
testcase_50 WA -
testcase_51 AC 349 ms
61,644 KB
testcase_52 WA -
testcase_53 AC 349 ms
58,804 KB
testcase_54 WA -
testcase_55 AC 337 ms
58,384 KB
testcase_56 WA -
testcase_57 AC 319 ms
53,148 KB
testcase_58 WA -
testcase_59 AC 341 ms
58,752 KB
権限があれば一括ダウンロードができます

ソースコード

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		
while 4 in li:
	li.remove(4)

while 1 in li:
	ans += 1
	li.remove(1)

while 2 in li:
	ans += 1
	li.remove(2)
	
for i in li:
	if i < 8 or i%2 == 1:
		print('First')
		sys.exit()

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