結果

問題 No.733 分身並列コーディング
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-01-31 05:34:14
言語 Ruby
(3.2.2)
結果
AC  
実行時間 708 ms / 1,500 ms
コード長 146 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 11,384 KB
実行使用メモリ 18,088 KB
最終ジャッジ日時 2023-08-07 09:05:40
合計ジャッジ時間 20,313 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,164 KB
testcase_01 AC 77 ms
15,228 KB
testcase_02 AC 78 ms
15,136 KB
testcase_03 AC 696 ms
17,988 KB
testcase_04 AC 702 ms
17,892 KB
testcase_05 AC 701 ms
18,020 KB
testcase_06 AC 78 ms
15,132 KB
testcase_07 AC 705 ms
17,868 KB
testcase_08 AC 705 ms
17,936 KB
testcase_09 AC 380 ms
17,192 KB
testcase_10 AC 112 ms
15,884 KB
testcase_11 AC 113 ms
15,956 KB
testcase_12 AC 79 ms
15,008 KB
testcase_13 AC 77 ms
15,112 KB
testcase_14 AC 223 ms
16,640 KB
testcase_15 AC 94 ms
15,756 KB
testcase_16 AC 78 ms
15,008 KB
testcase_17 AC 78 ms
15,044 KB
testcase_18 AC 110 ms
16,020 KB
testcase_19 AC 377 ms
17,152 KB
testcase_20 AC 380 ms
17,108 KB
testcase_21 AC 219 ms
16,488 KB
testcase_22 AC 708 ms
18,088 KB
testcase_23 AC 221 ms
16,416 KB
testcase_24 AC 222 ms
16,520 KB
testcase_25 AC 80 ms
15,232 KB
testcase_26 AC 77 ms
15,040 KB
testcase_27 AC 94 ms
15,640 KB
testcase_28 AC 702 ms
17,988 KB
testcase_29 AC 708 ms
17,956 KB
testcase_30 AC 706 ms
17,840 KB
testcase_31 AC 703 ms
17,956 KB
testcase_32 AC 145 ms
16,092 KB
testcase_33 AC 145 ms
16,120 KB
testcase_34 AC 146 ms
16,040 KB
testcase_35 AC 145 ms
16,024 KB
testcase_36 AC 145 ms
16,180 KB
testcase_37 AC 145 ms
16,016 KB
testcase_38 AC 701 ms
17,960 KB
testcase_39 AC 703 ms
17,972 KB
testcase_40 AC 703 ms
18,084 KB
testcase_41 AC 146 ms
16,200 KB
testcase_42 AC 145 ms
16,264 KB
testcase_43 AC 145 ms
16,124 KB
testcase_44 AC 703 ms
18,084 KB
testcase_45 AC 702 ms
17,896 KB
testcase_46 AC 700 ms
18,056 KB
testcase_47 AC 700 ms
17,904 KB
testcase_48 AC 706 ms
17,984 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