結果

問題 No.761 平均値ゲーム
ユーザー convexineqconvexineq
提出日時 2021-05-21 00:34:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 468 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 353,428 KB
最終ジャッジ日時 2024-04-18 14:11:15
合計ジャッジ時間 23,147 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,880 KB
testcase_01 AC 28 ms
10,752 KB
testcase_02 AC 28 ms
10,752 KB
testcase_03 AC 28 ms
10,752 KB
testcase_04 AC 28 ms
10,752 KB
testcase_05 AC 29 ms
10,752 KB
testcase_06 AC 28 ms
10,880 KB
testcase_07 AC 27 ms
10,752 KB
testcase_08 AC 28 ms
10,880 KB
testcase_09 AC 28 ms
10,752 KB
testcase_10 AC 28 ms
10,752 KB
testcase_11 AC 28 ms
10,752 KB
testcase_12 AC 28 ms
10,880 KB
testcase_13 AC 28 ms
10,880 KB
testcase_14 AC 28 ms
10,880 KB
testcase_15 AC 28 ms
10,752 KB
testcase_16 AC 29 ms
10,752 KB
testcase_17 AC 29 ms
10,752 KB
testcase_18 AC 29 ms
10,752 KB
testcase_19 AC 28 ms
10,752 KB
testcase_20 AC 29 ms
10,752 KB
testcase_21 AC 27 ms
10,752 KB
testcase_22 AC 28 ms
10,752 KB
testcase_23 AC 28 ms
10,880 KB
testcase_24 AC 27 ms
10,752 KB
testcase_25 AC 28 ms
10,752 KB
testcase_26 AC 29 ms
10,880 KB
testcase_27 AC 29 ms
10,752 KB
testcase_28 AC 29 ms
10,752 KB
testcase_29 AC 28 ms
10,752 KB
testcase_30 AC 28 ms
10,880 KB
testcase_31 AC 27 ms
10,752 KB
testcase_32 RE -
testcase_33 AC 124 ms
19,044 KB
testcase_34 AC 136 ms
20,292 KB
testcase_35 AC 39 ms
11,648 KB
testcase_36 AC 89 ms
16,140 KB
testcase_37 AC 117 ms
18,468 KB
testcase_38 AC 114 ms
18,140 KB
testcase_39 AC 143 ms
20,404 KB
testcase_40 AC 138 ms
20,164 KB
testcase_41 AC 132 ms
20,064 KB
testcase_42 AC 142 ms
20,988 KB
testcase_43 AC 47 ms
12,536 KB
testcase_44 AC 99 ms
16,888 KB
testcase_45 AC 130 ms
19,404 KB
testcase_46 AC 83 ms
15,420 KB
testcase_47 AC 89 ms
15,552 KB
testcase_48 AC 34 ms
11,520 KB
testcase_49 AC 149 ms
20,944 KB
testcase_50 AC 42 ms
12,032 KB
testcase_51 AC 37 ms
11,520 KB
testcase_52 AC 37 ms
11,776 KB
testcase_53 AC 145 ms
20,560 KB
testcase_54 AC 98 ms
16,332 KB
testcase_55 AC 141 ms
20,584 KB
testcase_56 AC 63 ms
14,408 KB
testcase_57 AC 150 ms
20,672 KB
testcase_58 AC 48 ms
12,520 KB
testcase_59 AC 138 ms
20,044 KB
testcase_60 AC 61 ms
14,528 KB
testcase_61 AC 153 ms
21,284 KB
testcase_62 AC 150 ms
20,624 KB
testcase_63 AC 51 ms
13,564 KB
testcase_64 AC 134 ms
19,552 KB
testcase_65 AC 73 ms
14,820 KB
testcase_66 AC 36 ms
11,520 KB
testcase_67 AC 64 ms
14,536 KB
testcase_68 AC 44 ms
11,904 KB
testcase_69 AC 119 ms
18,472 KB
testcase_70 AC 86 ms
16,120 KB
testcase_71 AC 54 ms
13,524 KB
testcase_72 AC 39 ms
11,776 KB
testcase_73 AC 68 ms
14,944 KB
testcase_74 AC 52 ms
13,512 KB
testcase_75 AC 80 ms
15,256 KB
testcase_76 AC 60 ms
14,400 KB
testcase_77 AC 117 ms
18,556 KB
testcase_78 AC 87 ms
16,168 KB
testcase_79 AC 49 ms
13,260 KB
testcase_80 AC 43 ms
12,288 KB
testcase_81 AC 41 ms
12,160 KB
testcase_82 AC 102 ms
16,984 KB
testcase_83 AC 160 ms
21,812 KB
testcase_84 AC 157 ms
21,688 KB
testcase_85 AC 157 ms
21,680 KB
testcase_86 AC 155 ms
21,560 KB
testcase_87 AC 156 ms
21,684 KB
testcase_88 AC 160 ms
21,684 KB
testcase_89 AC 161 ms
21,816 KB
testcase_90 AC 154 ms
21,684 KB
testcase_91 AC 158 ms
21,812 KB
testcase_92 AC 159 ms
21,816 KB
testcase_93 AC 29 ms
10,752 KB
testcase_94 AC 28 ms
10,880 KB
testcase_95 TLE -
testcase_96 TLE -
testcase_97 TLE -
testcase_98 RE -
testcase_99 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left
import sys
sys.setrecursionlimit(1<<20)
def f(L,R):
    if L+1==R:
        return 1
    elif L+2==R:
        return int(a[L]==a[L+1])
    s = acc[R] - acc[L]
    i = bisect_left(a,(s+R-L-1)//(R-L))
    v = 0
    if L < i and f(L,i)==0: v = 1
    if i < R and f(i,R)==0: v = 1
    return v

n = int(input())
*a, = map(int,input().split())
acc = [0]+a[:]
for i in range(1,n+1):
    acc[i] += acc[i-1]
print("First" if f(0,n) else "Second")
0