結果

問題 No.944 煎っぞ!
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-12-11 00:55:12
言語 Ruby
(3.3.0)
結果
AC  
実行時間 515 ms / 3,000 ms
コード長 105 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 11,396 KB
実行使用メモリ 25,544 KB
最終ジャッジ日時 2023-09-06 11:47:17
合計ジャッジ時間 8,732 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 176 ms
25,460 KB
testcase_01 AC 172 ms
25,356 KB
testcase_02 AC 173 ms
25,388 KB
testcase_03 AC 174 ms
25,280 KB
testcase_04 AC 177 ms
25,512 KB
testcase_05 AC 174 ms
25,388 KB
testcase_06 AC 173 ms
25,544 KB
testcase_07 AC 175 ms
25,516 KB
testcase_08 AC 171 ms
25,380 KB
testcase_09 AC 172 ms
25,388 KB
testcase_10 AC 83 ms
15,136 KB
testcase_11 AC 162 ms
17,084 KB
testcase_12 AC 125 ms
16,048 KB
testcase_13 AC 78 ms
15,248 KB
testcase_14 AC 161 ms
17,264 KB
testcase_15 AC 115 ms
15,936 KB
testcase_16 AC 78 ms
15,404 KB
testcase_17 AC 79 ms
15,176 KB
testcase_18 AC 162 ms
17,252 KB
testcase_19 AC 161 ms
17,220 KB
testcase_20 AC 506 ms
25,352 KB
testcase_21 AC 515 ms
25,412 KB
testcase_22 AC 164 ms
25,268 KB
testcase_23 AC 165 ms
25,272 KB
testcase_24 AC 166 ms
25,496 KB
testcase_25 AC 165 ms
25,340 KB
testcase_26 AC 168 ms
25,468 KB
testcase_27 AC 472 ms
24,952 KB
testcase_28 AC 78 ms
15,092 KB
testcase_29 AC 77 ms
15,152 KB
testcase_30 AC 504 ms
25,460 KB
testcase_31 AC 179 ms
25,516 KB
testcase_32 AC 156 ms
25,460 KB
testcase_33 AC 274 ms
25,448 KB
testcase_34 AC 258 ms
25,328 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s=z=0
f={}
gets
gets.split.each{|a|f[s+=a.to_i]=1}
1.upto(s){|r|s%r<1&&(1..r).all?{|j|f[s/r*j]}&&z=r}
p z
0