結果

問題 No.761 平均値ゲーム
ユーザー cielciel
提出日時 2019-04-20 14:51:44
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 170 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 27,904 KB
最終ジャッジ日時 2024-04-08 16:22:13
合計ジャッジ時間 14,793 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 88 ms
16,256 KB
testcase_03 WA -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 88 ms
16,256 KB
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 AC 87 ms
16,256 KB
testcase_11 AC 87 ms
16,256 KB
testcase_12 AC 87 ms
16,256 KB
testcase_13 AC 89 ms
16,256 KB
testcase_14 AC 88 ms
16,256 KB
testcase_15 RE -
testcase_16 AC 88 ms
16,256 KB
testcase_17 AC 89 ms
16,256 KB
testcase_18 RE -
testcase_19 AC 86 ms
16,256 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 87 ms
16,256 KB
testcase_23 AC 87 ms
16,256 KB
testcase_24 RE -
testcase_25 AC 88 ms
16,256 KB
testcase_26 AC 88 ms
16,256 KB
testcase_27 AC 87 ms
16,256 KB
testcase_28 RE -
testcase_29 AC 86 ms
16,256 KB
testcase_30 AC 87 ms
16,256 KB
testcase_31 RE -
testcase_32 AC 86 ms
16,256 KB
testcase_33 AC 140 ms
22,272 KB
testcase_34 AC 150 ms
23,296 KB
testcase_35 AC 96 ms
16,640 KB
testcase_36 AC 127 ms
20,096 KB
testcase_37 AC 138 ms
21,888 KB
testcase_38 AC 138 ms
21,888 KB
testcase_39 AC 149 ms
23,552 KB
testcase_40 AC 152 ms
23,424 KB
testcase_41 AC 152 ms
23,040 KB
testcase_42 AC 150 ms
23,680 KB
testcase_43 AC 100 ms
17,408 KB
testcase_44 AC 130 ms
20,992 KB
testcase_45 AC 146 ms
22,912 KB
testcase_46 AC 124 ms
19,712 KB
testcase_47 AC 127 ms
19,968 KB
testcase_48 AC 92 ms
16,512 KB
testcase_49 AC 153 ms
23,680 KB
testcase_50 AC 98 ms
16,768 KB
testcase_51 AC 94 ms
16,512 KB
testcase_52 AC 93 ms
16,640 KB
testcase_53 AC 152 ms
23,680 KB
testcase_54 AC 126 ms
20,608 KB
testcase_55 AC 159 ms
23,936 KB
testcase_56 AC 110 ms
18,432 KB
testcase_57 AC 156 ms
24,064 KB
testcase_58 AC 100 ms
17,280 KB
testcase_59 AC 148 ms
23,296 KB
testcase_60 AC 111 ms
18,432 KB
testcase_61 AC 173 ms
24,704 KB
testcase_62 AC 156 ms
23,936 KB
testcase_63 AC 101 ms
17,664 KB
testcase_64 AC 146 ms
23,040 KB
testcase_65 AC 115 ms
19,072 KB
testcase_66 AC 93 ms
16,512 KB
testcase_67 AC 112 ms
18,432 KB
testcase_68 AC 97 ms
16,768 KB
testcase_69 AC 140 ms
22,144 KB
testcase_70 AC 126 ms
20,096 KB
testcase_71 AC 104 ms
17,792 KB
testcase_72 AC 96 ms
16,640 KB
testcase_73 AC 111 ms
18,816 KB
testcase_74 AC 99 ms
17,664 KB
testcase_75 AC 121 ms
19,712 KB
testcase_76 AC 111 ms
18,432 KB
testcase_77 AC 138 ms
22,144 KB
testcase_78 AC 125 ms
20,096 KB
testcase_79 AC 99 ms
17,408 KB
testcase_80 AC 99 ms
17,152 KB
testcase_81 AC 95 ms
16,768 KB
testcase_82 AC 130 ms
20,992 KB
testcase_83 AC 173 ms
25,088 KB
testcase_84 AC 175 ms
25,088 KB
testcase_85 AC 171 ms
25,088 KB
testcase_86 AC 169 ms
25,088 KB
testcase_87 AC 171 ms
25,088 KB
testcase_88 AC 170 ms
25,088 KB
testcase_89 AC 169 ms
25,088 KB
testcase_90 AC 169 ms
25,088 KB
testcase_91 AC 175 ms
25,088 KB
testcase_92 AC 169 ms
25,088 KB
testcase_93 AC 89 ms
16,256 KB
testcase_94 RE -
testcase_95 AC 160 ms
24,960 KB
testcase_96 AC 163 ms
25,088 KB
testcase_97 AC 161 ms
25,088 KB
testcase_98 RE -
testcase_99 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,*a=`dd`.split.map &:to_i
*s=0
n.times{|i|s<<s[i]+a[i]}
f=->l,r{a[l]==a[r-1]||!f[l,t=a.bsearch_index{|e|e>(s[r]-s[l]+r-l-1)/(r-l)}]||!f[t,r]}
puts f[0,n]?:First: :Second
0