結果

問題 No.1174 盆栽の剪定
ユーザー tailstails
提出日時 2020-08-18 09:57:26
言語 cLay
(20240104-1)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 1,733 ms
コンパイル使用メモリ 160,500 KB
実行使用メモリ 28,888 KB
最終ジャッジ日時 2023-09-19 01:01:16
合計ジャッジ時間 5,543 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,352 KB
testcase_01 AC 2 ms
5,400 KB
testcase_02 AC 2 ms
5,384 KB
testcase_03 AC 2 ms
5,436 KB
testcase_04 AC 2 ms
5,404 KB
testcase_05 AC 2 ms
5,488 KB
testcase_06 AC 2 ms
5,348 KB
testcase_07 AC 2 ms
5,396 KB
testcase_08 AC 2 ms
5,396 KB
testcase_09 AC 2 ms
5,484 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 2 ms
5,484 KB
testcase_12 AC 2 ms
5,416 KB
testcase_13 AC 2 ms
5,428 KB
testcase_14 AC 2 ms
5,448 KB
testcase_15 AC 2 ms
5,484 KB
testcase_16 AC 2 ms
5,552 KB
testcase_17 AC 2 ms
5,376 KB
testcase_18 AC 2 ms
5,416 KB
testcase_19 AC 17 ms
28,888 KB
testcase_20 AC 15 ms
28,248 KB
testcase_21 AC 5 ms
9,552 KB
testcase_22 AC 17 ms
28,688 KB
testcase_23 AC 14 ms
28,124 KB
testcase_24 AC 16 ms
26,736 KB
testcase_25 AC 11 ms
20,376 KB
testcase_26 AC 14 ms
22,592 KB
testcase_27 AC 11 ms
18,200 KB
testcase_28 AC 14 ms
24,604 KB
testcase_29 AC 11 ms
18,328 KB
testcase_30 AC 16 ms
26,928 KB
testcase_31 AC 10 ms
18,140 KB
testcase_32 AC 10 ms
18,256 KB
testcase_33 AC 11 ms
20,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define f(k)d[2*i+k][j+3]+max(d[2*i+3-k][j+1],0ll)
ll n,d[3d5][27];{rd(n,*d(n));rrep(i,n)rep(j,24)d[i][j+2]=max(f(1),f(2))+*d[i]*(j-7);wt(d[0][9]);}
0