結果

問題 No.949 飲酒プログラミングコンテスト
ユーザー 👑 hos.lyrichos.lyric
提出日時 2019-12-12 01:00:38
言語 cLay
(20240104-1)
結果
AC  
実行時間 94 ms / 2,500 ms
コード長 177 bytes
コンパイル時間 4,930 ms
コンパイル使用メモリ 206,132 KB
実行使用メモリ 70,336 KB
最終ジャッジ日時 2023-09-19 00:33:23
合計ジャッジ時間 7,161 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 4 ms
4,704 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 3 ms
4,380 KB
testcase_11 AC 50 ms
37,856 KB
testcase_12 AC 52 ms
39,532 KB
testcase_13 AC 45 ms
34,644 KB
testcase_14 AC 10 ms
9,972 KB
testcase_15 AC 29 ms
23,072 KB
testcase_16 AC 49 ms
36,676 KB
testcase_17 AC 17 ms
13,784 KB
testcase_18 AC 94 ms
67,820 KB
testcase_19 AC 31 ms
20,948 KB
testcase_20 AC 9 ms
8,596 KB
testcase_21 AC 4 ms
4,556 KB
testcase_22 AC 6 ms
5,408 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 63 ms
48,864 KB
testcase_25 AC 67 ms
50,128 KB
testcase_26 AC 69 ms
51,192 KB
testcase_27 AC 53 ms
39,756 KB
testcase_28 AC 94 ms
70,336 KB
testcase_29 AC 41 ms
27,820 KB
testcase_30 AC 24 ms
11,240 KB
testcase_31 AC 16 ms
4,376 KB
testcase_32 AC 56 ms
41,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{ll m=6010,n,a[m],b[m],d[m],f[m][m],s;rd(n,a(n+1),b(n+1),d(n));sortA(n,d);rrep(x,n+1)rrep(y,n+1){s=f[x+1][y+1];f[x][y+1]>?=s+=a[x]+b[y]>=d[s];f[x+1][y]>?=s;}wt(min(f[1][1],n));}
0