結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 93 ms
16,256 KB
testcase_03 WA -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 93 ms
16,256 KB
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 AC 90 ms
16,256 KB
testcase_11 AC 92 ms
16,256 KB
testcase_12 AC 94 ms
16,256 KB
testcase_13 AC 91 ms
16,256 KB
testcase_14 AC 92 ms
16,256 KB
testcase_15 RE -
testcase_16 AC 91 ms
16,256 KB
testcase_17 AC 91 ms
16,256 KB
testcase_18 RE -
testcase_19 AC 91 ms
16,256 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 91 ms
16,256 KB
testcase_23 AC 92 ms
16,256 KB
testcase_24 RE -
testcase_25 AC 92 ms
16,256 KB
testcase_26 AC 90 ms
16,256 KB
testcase_27 AC 90 ms
16,256 KB
testcase_28 RE -
testcase_29 AC 91 ms
16,256 KB
testcase_30 AC 95 ms
16,256 KB
testcase_31 RE -
testcase_32 AC 91 ms
16,256 KB
testcase_33 AC 147 ms
22,272 KB
testcase_34 AC 153 ms
23,296 KB
testcase_35 AC 98 ms
16,640 KB
testcase_36 AC 129 ms
20,096 KB
testcase_37 AC 152 ms
21,888 KB
testcase_38 AC 142 ms
21,888 KB
testcase_39 AC 156 ms
23,552 KB
testcase_40 AC 156 ms
23,424 KB
testcase_41 AC 149 ms
23,040 KB
testcase_42 AC 154 ms
23,680 KB
testcase_43 AC 105 ms
17,408 KB
testcase_44 AC 135 ms
20,992 KB
testcase_45 AC 155 ms
22,912 KB
testcase_46 AC 129 ms
19,712 KB
testcase_47 AC 129 ms
19,968 KB
testcase_48 AC 98 ms
16,512 KB
testcase_49 AC 155 ms
23,680 KB
testcase_50 AC 101 ms
16,768 KB
testcase_51 AC 97 ms
16,512 KB
testcase_52 AC 98 ms
16,640 KB
testcase_53 AC 161 ms
23,680 KB
testcase_54 AC 131 ms
20,608 KB
testcase_55 AC 171 ms
23,936 KB
testcase_56 AC 114 ms
18,432 KB
testcase_57 AC 161 ms
24,064 KB
testcase_58 AC 101 ms
17,280 KB
testcase_59 AC 150 ms
23,296 KB
testcase_60 AC 118 ms
18,432 KB
testcase_61 AC 177 ms
24,704 KB
testcase_62 AC 158 ms
23,936 KB
testcase_63 AC 104 ms
17,664 KB
testcase_64 AC 148 ms
23,040 KB
testcase_65 AC 117 ms
19,072 KB
testcase_66 AC 100 ms
16,512 KB
testcase_67 AC 120 ms
18,432 KB
testcase_68 AC 97 ms
16,768 KB
testcase_69 AC 142 ms
22,144 KB
testcase_70 AC 130 ms
20,096 KB
testcase_71 AC 105 ms
17,792 KB
testcase_72 AC 97 ms
16,640 KB
testcase_73 AC 116 ms
18,816 KB
testcase_74 AC 102 ms
17,664 KB
testcase_75 AC 126 ms
19,712 KB
testcase_76 AC 113 ms
18,432 KB
testcase_77 AC 144 ms
22,144 KB
testcase_78 AC 128 ms
20,096 KB
testcase_79 AC 102 ms
17,408 KB
testcase_80 AC 104 ms
17,152 KB
testcase_81 AC 98 ms
16,768 KB
testcase_82 AC 134 ms
20,992 KB
testcase_83 AC 176 ms
25,088 KB
testcase_84 AC 182 ms
25,088 KB
testcase_85 AC 183 ms
25,088 KB
testcase_86 AC 179 ms
25,088 KB
testcase_87 AC 177 ms
25,088 KB
testcase_88 AC 172 ms
25,088 KB
testcase_89 AC 181 ms
25,088 KB
testcase_90 AC 176 ms
25,088 KB
testcase_91 AC 182 ms
25,088 KB
testcase_92 AC 170 ms
25,088 KB
testcase_93 AC 90 ms
16,256 KB
testcase_94 RE -
testcase_95 AC 162 ms
24,960 KB
testcase_96 AC 166 ms
25,088 KB
testcase_97 AC 164 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