結果
問題 | No.733 分身並列コーディング |
ユーザー | 👑 hos.lyric |
提出日時 | 2019-01-31 03:09:59 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 652 ms / 1,500 ms |
コード長 | 159 bytes |
コンパイル時間 | 333 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 16,512 KB |
最終ジャッジ日時 | 2024-04-24 20:22:57 |
合計ジャッジ時間 | 17,903 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
12,288 KB |
testcase_01 | AC | 77 ms
12,288 KB |
testcase_02 | AC | 76 ms
12,160 KB |
testcase_03 | AC | 623 ms
16,128 KB |
testcase_04 | AC | 625 ms
16,384 KB |
testcase_05 | AC | 626 ms
16,256 KB |
testcase_06 | AC | 74 ms
12,288 KB |
testcase_07 | AC | 642 ms
16,000 KB |
testcase_08 | AC | 619 ms
16,384 KB |
testcase_09 | AC | 341 ms
15,488 KB |
testcase_10 | AC | 105 ms
12,800 KB |
testcase_11 | AC | 102 ms
12,928 KB |
testcase_12 | AC | 76 ms
12,032 KB |
testcase_13 | AC | 74 ms
12,288 KB |
testcase_14 | AC | 208 ms
13,440 KB |
testcase_15 | AC | 90 ms
12,288 KB |
testcase_16 | AC | 72 ms
12,160 KB |
testcase_17 | AC | 75 ms
12,288 KB |
testcase_18 | AC | 106 ms
12,672 KB |
testcase_19 | AC | 351 ms
15,104 KB |
testcase_20 | AC | 342 ms
15,488 KB |
testcase_21 | AC | 204 ms
13,440 KB |
testcase_22 | AC | 643 ms
16,384 KB |
testcase_23 | AC | 211 ms
13,184 KB |
testcase_24 | AC | 230 ms
13,312 KB |
testcase_25 | AC | 77 ms
12,160 KB |
testcase_26 | AC | 77 ms
12,160 KB |
testcase_27 | AC | 90 ms
12,160 KB |
testcase_28 | AC | 649 ms
16,256 KB |
testcase_29 | AC | 636 ms
16,256 KB |
testcase_30 | AC | 651 ms
16,384 KB |
testcase_31 | AC | 643 ms
16,384 KB |
testcase_32 | AC | 136 ms
12,800 KB |
testcase_33 | AC | 140 ms
12,928 KB |
testcase_34 | AC | 140 ms
12,928 KB |
testcase_35 | AC | 137 ms
12,800 KB |
testcase_36 | AC | 136 ms
12,800 KB |
testcase_37 | AC | 138 ms
12,800 KB |
testcase_38 | AC | 652 ms
16,256 KB |
testcase_39 | AC | 642 ms
16,256 KB |
testcase_40 | AC | 634 ms
16,000 KB |
testcase_41 | AC | 141 ms
12,800 KB |
testcase_42 | AC | 140 ms
12,928 KB |
testcase_43 | AC | 145 ms
12,800 KB |
testcase_44 | AC | 650 ms
16,384 KB |
testcase_45 | AC | 651 ms
16,128 KB |
testcase_46 | AC | 644 ms
16,384 KB |
testcase_47 | AC | 634 ms
16,256 KB |
testcase_48 | AC | 647 ms
16,512 KB |
コンパイルメッセージ
Syntax OK
ソースコード
t=gets.to_i r=0...n=gets.to_i a=r.map{gets.to_i} d=[0] (1..1<<n).map{|h|d<<r.map{|i|h[i]>0?(x=d[h^1<<i];y=t-x%t;y<(b=a[i])?x+b+y:x+b):1e9}.min} p (d[-2]+t-1)/t