結果

問題 No.710 チーム戦
ユーザー tailstails
提出日時 2018-06-29 23:12:43
言語 cLay
(20231016-1)
結果
AC  
実行時間 32 ms / 3,000 ms
コード長 183 bytes
コンパイル時間 2,055 ms
コンパイル使用メモリ 162,980 KB
実行使用メモリ 84,288 KB
最終ジャッジ日時 2023-09-19 00:07:16
合計ジャッジ時間 4,472 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
8,284 KB
testcase_01 AC 4 ms
10,408 KB
testcase_02 AC 32 ms
84,016 KB
testcase_03 AC 30 ms
84,120 KB
testcase_04 AC 30 ms
84,016 KB
testcase_05 AC 30 ms
84,136 KB
testcase_06 AC 30 ms
84,288 KB
testcase_07 AC 30 ms
84,000 KB
testcase_08 AC 30 ms
84,000 KB
testcase_09 AC 31 ms
84,016 KB
testcase_10 AC 30 ms
84,064 KB
testcase_11 AC 31 ms
84,280 KB
testcase_12 AC 30 ms
84,064 KB
testcase_13 AC 30 ms
84,000 KB
testcase_14 AC 30 ms
84,212 KB
testcase_15 AC 30 ms
84,008 KB
testcase_16 AC 30 ms
84,064 KB
testcase_17 AC 31 ms
84,056 KB
testcase_18 AC 30 ms
84,012 KB
testcase_19 AC 30 ms
84,076 KB
testcase_20 AC 31 ms
84,204 KB
testcase_21 AC 31 ms
84,084 KB
testcase_22 AC 30 ms
84,128 KB
testcase_23 AC 30 ms
84,288 KB
testcase_24 AC 31 ms
84,056 KB
testcase_25 AC 2 ms
5,800 KB
testcase_26 AC 2 ms
5,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int n,a[100],b[100];
int dp[110][2d5];
int r=2d5;
{
	rd(n,(a,b)(n));
	rep(i,n)rep(j,1d5)dp[i+1][j]=min(dp[i][j]+b[i],j<a[i]?r:dp[i][j-a[i]]);
	rep(j,1d5)r<?=max(j,dp[n][j]);
	wt(r);
}
0