結果

問題 No.944 煎っぞ!
ユーザー yuruhiyayuruhiya
提出日時 2020-08-05 21:32:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 663 ms / 3,000 ms
コード長 95 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 11,896 KB
実行使用メモリ 61,740 KB
最終ジャッジ日時 2023-10-17 14:48:47
合計ジャッジ時間 11,695 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 188 ms
26,828 KB
testcase_01 AC 188 ms
26,696 KB
testcase_02 AC 186 ms
26,740 KB
testcase_03 AC 186 ms
26,768 KB
testcase_04 AC 187 ms
26,628 KB
testcase_05 AC 189 ms
26,736 KB
testcase_06 AC 188 ms
26,632 KB
testcase_07 AC 189 ms
26,660 KB
testcase_08 AC 193 ms
26,684 KB
testcase_09 AC 186 ms
26,712 KB
testcase_10 AC 90 ms
16,828 KB
testcase_11 AC 192 ms
25,300 KB
testcase_12 AC 145 ms
20,900 KB
testcase_13 AC 85 ms
16,040 KB
testcase_14 AC 194 ms
25,120 KB
testcase_15 AC 133 ms
20,008 KB
testcase_16 AC 82 ms
16,040 KB
testcase_17 AC 86 ms
16,040 KB
testcase_18 AC 192 ms
25,116 KB
testcase_19 AC 196 ms
25,112 KB
testcase_20 AC 653 ms
61,688 KB
testcase_21 AC 663 ms
61,740 KB
testcase_22 AC 176 ms
25,924 KB
testcase_23 AC 173 ms
26,000 KB
testcase_24 AC 178 ms
25,984 KB
testcase_25 AC 180 ms
25,812 KB
testcase_26 AC 173 ms
25,932 KB
testcase_27 AC 598 ms
57,756 KB
testcase_28 AC 83 ms
16,040 KB
testcase_29 AC 83 ms
16,040 KB
testcase_30 AC 648 ms
61,428 KB
testcase_31 AC 140 ms
23,028 KB
testcase_32 AC 143 ms
23,036 KB
testcase_33 AC 314 ms
35,852 KB
testcase_34 AC 291 ms
34,740 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s,*f=0
`sed 1d`.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