結果

問題 No.771 しおり
ユーザー tailstails
提出日時 2018-12-19 10:31:28
言語 cLay
(20231016-1)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 2,070 ms
コンパイル使用メモリ 163,756 KB
実行使用メモリ 23,960 KB
最終ジャッジ日時 2023-09-29 12:48:21
合計ジャッジ時間 4,392 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
23,864 KB
testcase_01 AC 10 ms
9,512 KB
testcase_02 AC 1 ms
5,436 KB
testcase_03 AC 1 ms
5,484 KB
testcase_04 AC 1 ms
5,520 KB
testcase_05 AC 1 ms
5,388 KB
testcase_06 AC 1 ms
5,384 KB
testcase_07 AC 1 ms
5,392 KB
testcase_08 AC 1 ms
5,660 KB
testcase_09 AC 1 ms
5,396 KB
testcase_10 AC 2 ms
5,516 KB
testcase_11 AC 2 ms
5,400 KB
testcase_12 AC 1 ms
5,444 KB
testcase_13 AC 1 ms
5,392 KB
testcase_14 AC 1 ms
5,480 KB
testcase_15 AC 1 ms
5,628 KB
testcase_16 AC 2 ms
5,388 KB
testcase_17 AC 1 ms
5,400 KB
testcase_18 AC 2 ms
5,392 KB
testcase_19 AC 1 ms
5,448 KB
testcase_20 AC 1 ms
5,464 KB
testcase_21 AC 2 ms
5,592 KB
testcase_22 AC 1 ms
5,416 KB
testcase_23 AC 1 ms
5,408 KB
testcase_24 AC 1 ms
5,404 KB
testcase_25 AC 39 ms
15,620 KB
testcase_26 AC 2 ms
5,836 KB
testcase_27 AC 10 ms
9,496 KB
testcase_28 AC 20 ms
11,588 KB
testcase_29 AC 11 ms
9,460 KB
testcase_30 AC 78 ms
23,944 KB
testcase_31 AC 90 ms
23,880 KB
testcase_32 AC 3 ms
5,996 KB
testcase_33 AC 82 ms
23,960 KB
testcase_34 AC 79 ms
23,820 KB
testcase_35 AC 4 ms
5,960 KB
testcase_36 AC 2 ms
5,584 KB
testcase_37 AC 2 ms
5,544 KB
testcase_38 AC 3 ms
6,020 KB
testcase_39 AC 2 ms
5,764 KB
testcase_40 AC 34 ms
15,852 KB
testcase_41 AC 80 ms
23,864 KB
testcase_42 AC 80 ms
23,800 KB
testcase_43 AC 11 ms
9,476 KB
testcase_44 AC 76 ms
23,876 KB
testcase_45 AC 133 ms
23,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int n,a[18],b[18],d[1<<18][18];
{
	rd(n,(a,b)(n));
	rep(j,1<<n)rep(k,n){
		d[j][k]=9999;
		if(j&1<<k){
			if(j&j-1)rep(l,n)d[j][k]<?=max(d[j^1<<k][l],b[l]-a[l]+a[k]);
			else d[j][k]=0;
		}
	}
	wt(min(d[(1<<n)-1](n)));
}
0