結果

問題 No.733 分身並列コーディング
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-01-31 03:18:02
言語 Ruby
(3.3.0)
結果
AC  
実行時間 772 ms / 1,500 ms
コード長 148 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2024-04-24 20:31:23
合計ジャッジ時間 21,001 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
12,160 KB
testcase_01 AC 92 ms
12,160 KB
testcase_02 AC 92 ms
12,288 KB
testcase_03 AC 762 ms
17,024 KB
testcase_04 AC 765 ms
17,024 KB
testcase_05 AC 766 ms
17,280 KB
testcase_06 AC 90 ms
12,160 KB
testcase_07 AC 762 ms
17,024 KB
testcase_08 AC 762 ms
17,024 KB
testcase_09 AC 415 ms
13,696 KB
testcase_10 AC 130 ms
12,416 KB
testcase_11 AC 128 ms
12,672 KB
testcase_12 AC 89 ms
12,032 KB
testcase_13 AC 90 ms
12,288 KB
testcase_14 AC 246 ms
13,440 KB
testcase_15 AC 111 ms
12,416 KB
testcase_16 AC 91 ms
12,160 KB
testcase_17 AC 89 ms
12,160 KB
testcase_18 AC 128 ms
12,416 KB
testcase_19 AC 417 ms
13,824 KB
testcase_20 AC 415 ms
13,696 KB
testcase_21 AC 248 ms
13,696 KB
testcase_22 AC 772 ms
17,024 KB
testcase_23 AC 247 ms
13,568 KB
testcase_24 AC 247 ms
13,312 KB
testcase_25 AC 93 ms
12,160 KB
testcase_26 AC 89 ms
12,032 KB
testcase_27 AC 108 ms
12,416 KB
testcase_28 AC 763 ms
16,896 KB
testcase_29 AC 762 ms
17,792 KB
testcase_30 AC 770 ms
17,024 KB
testcase_31 AC 759 ms
17,280 KB
testcase_32 AC 165 ms
12,672 KB
testcase_33 AC 162 ms
12,800 KB
testcase_34 AC 164 ms
12,928 KB
testcase_35 AC 164 ms
12,544 KB
testcase_36 AC 164 ms
12,672 KB
testcase_37 AC 165 ms
12,672 KB
testcase_38 AC 759 ms
17,024 KB
testcase_39 AC 760 ms
16,896 KB
testcase_40 AC 762 ms
17,792 KB
testcase_41 AC 162 ms
12,672 KB
testcase_42 AC 165 ms
12,672 KB
testcase_43 AC 163 ms
12,672 KB
testcase_44 AC 767 ms
17,280 KB
testcase_45 AC 772 ms
17,152 KB
testcase_46 AC 766 ms
17,024 KB
testcase_47 AC 760 ms
17,024 KB
testcase_48 AC 763 ms
17,024 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=$<.map &:to_i
t=a[0]
n=a[1]
d=[0]
(1..1<<n).map{|h|d<<(0...n).map{|i|h[i]>0?(x=d[h^1<<i];y=t-x%t;y<(b=a[2+i])?x+b+y:x+b):1e9}.min}
p (d[-2]+t-1)/t
0