結果

問題 No.944 煎っぞ!
ユーザー yuruhiyayuruhiya
提出日時 2020-08-05 21:55:02
言語 Ruby
(3.3.0)
結果
AC  
実行時間 671 ms / 3,000 ms
コード長 95 bytes
コンパイル時間 531 ms
コンパイル使用メモリ 11,876 KB
実行使用メモリ 61,888 KB
最終ジャッジ日時 2023-10-17 17:31:59
合計ジャッジ時間 11,099 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 192 ms
26,580 KB
testcase_01 AC 190 ms
26,720 KB
testcase_02 AC 188 ms
26,788 KB
testcase_03 AC 193 ms
26,624 KB
testcase_04 AC 192 ms
26,692 KB
testcase_05 AC 191 ms
26,800 KB
testcase_06 AC 191 ms
26,696 KB
testcase_07 AC 192 ms
26,724 KB
testcase_08 AC 192 ms
26,704 KB
testcase_09 AC 193 ms
26,776 KB
testcase_10 AC 94 ms
16,884 KB
testcase_11 AC 200 ms
25,360 KB
testcase_12 AC 149 ms
20,960 KB
testcase_13 AC 86 ms
16,096 KB
testcase_14 AC 200 ms
25,180 KB
testcase_15 AC 134 ms
20,068 KB
testcase_16 AC 85 ms
16,096 KB
testcase_17 AC 85 ms
16,096 KB
testcase_18 AC 199 ms
25,176 KB
testcase_19 AC 199 ms
25,168 KB
testcase_20 AC 666 ms
61,888 KB
testcase_21 AC 671 ms
61,868 KB
testcase_22 AC 181 ms
25,988 KB
testcase_23 AC 180 ms
26,060 KB
testcase_24 AC 178 ms
26,048 KB
testcase_25 AC 179 ms
25,884 KB
testcase_26 AC 180 ms
25,804 KB
testcase_27 AC 622 ms
57,932 KB
testcase_28 AC 83 ms
16,096 KB
testcase_29 AC 85 ms
16,096 KB
testcase_30 AC 665 ms
61,700 KB
testcase_31 AC 140 ms
23,092 KB
testcase_32 AC 141 ms
23,100 KB
testcase_33 AC 325 ms
36,012 KB
testcase_34 AC 303 ms
34,804 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s,*f=0
[*$<][1].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