結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,880 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 38 ms
12,032 KB
testcase_05 AC 40 ms
12,416 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 47 ms
13,140 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 53 ms
14,556 KB
testcase_12 AC 52 ms
14,088 KB
testcase_13 WA -
testcase_14 AC 59 ms
14,812 KB
testcase_15 AC 59 ms
15,280 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 64 ms
16,340 KB
testcase_19 AC 65 ms
16,348 KB
testcase_20 AC 70 ms
16,572 KB
testcase_21 WA -
testcase_22 AC 72 ms
17,760 KB
testcase_23 AC 73 ms
17,492 KB
testcase_24 AC 76 ms
18,244 KB
testcase_25 WA -
testcase_26 AC 76 ms
17,604 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 86 ms
19,004 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 70 ms
16,820 KB
testcase_33 WA -
testcase_34 AC 72 ms
17,088 KB
testcase_35 AC 31 ms
10,880 KB
testcase_36 AC 32 ms
11,008 KB
testcase_37 AC 33 ms
10,880 KB
testcase_38 AC 32 ms
11,008 KB
testcase_39 WA -
testcase_40 AC 33 ms
11,008 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 33 ms
11,008 KB
testcase_44 WA -
testcase_45 AC 33 ms
11,136 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 33 ms
11,136 KB
testcase_50 WA -
testcase_51 AC 356 ms
60,540 KB
testcase_52 AC 339 ms
61,724 KB
testcase_53 WA -
testcase_54 WA -
testcase_55 AC 350 ms
58,364 KB
testcase_56 WA -
testcase_57 AC 311 ms
53,256 KB
testcase_58 WA -
testcase_59 AC 347 ms
58,732 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		

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

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