結果

問題 No.944 煎っぞ!
ユーザー yuruhiyayuruhiya
提出日時 2020-08-05 21:34:57
言語 Ruby
(3.3.0)
結果
AC  
実行時間 673 ms / 3,000 ms
コード長 96 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 11,860 KB
実行使用メモリ 61,864 KB
最終ジャッジ日時 2023-10-17 15:03:49
合計ジャッジ時間 10,417 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 188 ms
26,868 KB
testcase_01 AC 191 ms
26,736 KB
testcase_02 AC 190 ms
26,780 KB
testcase_03 AC 190 ms
26,808 KB
testcase_04 AC 190 ms
26,668 KB
testcase_05 AC 188 ms
26,776 KB
testcase_06 AC 190 ms
26,672 KB
testcase_07 AC 190 ms
26,700 KB
testcase_08 AC 191 ms
26,724 KB
testcase_09 AC 191 ms
26,752 KB
testcase_10 AC 91 ms
16,868 KB
testcase_11 AC 198 ms
25,340 KB
testcase_12 AC 147 ms
20,940 KB
testcase_13 AC 83 ms
16,080 KB
testcase_14 AC 197 ms
25,160 KB
testcase_15 AC 135 ms
20,048 KB
testcase_16 AC 82 ms
16,076 KB
testcase_17 AC 83 ms
16,080 KB
testcase_18 AC 199 ms
25,156 KB
testcase_19 AC 199 ms
25,148 KB
testcase_20 AC 670 ms
61,864 KB
testcase_21 AC 673 ms
61,844 KB
testcase_22 AC 180 ms
25,964 KB
testcase_23 AC 181 ms
26,040 KB
testcase_24 AC 180 ms
26,024 KB
testcase_25 AC 182 ms
25,860 KB
testcase_26 AC 183 ms
25,972 KB
testcase_27 AC 621 ms
57,796 KB
testcase_28 AC 86 ms
16,080 KB
testcase_29 AC 86 ms
16,080 KB
testcase_30 AC 664 ms
61,676 KB
testcase_31 AC 139 ms
23,068 KB
testcase_32 AC 139 ms
23,076 KB
testcase_33 AC 320 ms
35,988 KB
testcase_34 AC 303 ms
34,780 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s,*f=0
gets;gets.split.map{f[s+=_1.to_i]=1}
p s.downto(1).find{|r|s%r<1&&(1..r).all?{f[s/r*_1]}}
0