結果

問題 No.733 分身並列コーディング
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-01-31 05:34:14
言語 Ruby
(3.3.0)
結果
AC  
実行時間 699 ms / 1,500 ms
コード長 146 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 17,280 KB
最終ジャッジ日時 2024-04-25 03:10:06
合計ジャッジ時間 18,225 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
12,288 KB
testcase_01 AC 75 ms
12,160 KB
testcase_02 AC 74 ms
12,288 KB
testcase_03 AC 659 ms
17,280 KB
testcase_04 AC 664 ms
17,152 KB
testcase_05 AC 671 ms
17,024 KB
testcase_06 AC 76 ms
12,288 KB
testcase_07 AC 679 ms
17,024 KB
testcase_08 AC 659 ms
17,280 KB
testcase_09 AC 369 ms
13,824 KB
testcase_10 AC 119 ms
12,672 KB
testcase_11 AC 116 ms
12,800 KB
testcase_12 AC 77 ms
12,288 KB
testcase_13 AC 76 ms
12,160 KB
testcase_14 AC 211 ms
13,568 KB
testcase_15 AC 94 ms
12,544 KB
testcase_16 AC 81 ms
12,288 KB
testcase_17 AC 76 ms
12,416 KB
testcase_18 AC 107 ms
12,544 KB
testcase_19 AC 368 ms
13,952 KB
testcase_20 AC 360 ms
13,952 KB
testcase_21 AC 211 ms
13,568 KB
testcase_22 AC 672 ms
17,024 KB
testcase_23 AC 218 ms
13,568 KB
testcase_24 AC 216 ms
13,312 KB
testcase_25 AC 81 ms
12,288 KB
testcase_26 AC 80 ms
12,288 KB
testcase_27 AC 93 ms
12,416 KB
testcase_28 AC 672 ms
17,024 KB
testcase_29 AC 668 ms
17,152 KB
testcase_30 AC 670 ms
17,152 KB
testcase_31 AC 677 ms
17,152 KB
testcase_32 AC 139 ms
12,800 KB
testcase_33 AC 141 ms
12,928 KB
testcase_34 AC 143 ms
12,928 KB
testcase_35 AC 145 ms
12,800 KB
testcase_36 AC 141 ms
12,800 KB
testcase_37 AC 147 ms
12,800 KB
testcase_38 AC 676 ms
17,024 KB
testcase_39 AC 680 ms
17,152 KB
testcase_40 AC 662 ms
17,024 KB
testcase_41 AC 145 ms
12,800 KB
testcase_42 AC 149 ms
12,800 KB
testcase_43 AC 146 ms
12,928 KB
testcase_44 AC 699 ms
17,024 KB
testcase_45 AC 673 ms
17,024 KB
testcase_46 AC 671 ms
17,152 KB
testcase_47 AC 683 ms
17,024 KB
testcase_48 AC 681 ms
17,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a=$<.map &:to_i
t,n=a[0..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