結果

問題 No.1703 Much Matching
ユーザー tailstails
提出日時 2021-10-08 22:30:21
言語 cLay
(20240104-1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 1,893 ms
コンパイル使用メモリ 161,088 KB
実行使用メモリ 12,676 KB
最終ジャッジ日時 2023-09-30 11:08:32
合計ジャッジ時間 4,015 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,572 KB
testcase_01 AC 2 ms
5,480 KB
testcase_02 AC 2 ms
5,392 KB
testcase_03 AC 5 ms
9,648 KB
testcase_04 AC 4 ms
9,384 KB
testcase_05 AC 6 ms
11,508 KB
testcase_06 AC 11 ms
10,624 KB
testcase_07 AC 4 ms
10,704 KB
testcase_08 AC 12 ms
12,548 KB
testcase_09 AC 13 ms
12,600 KB
testcase_10 AC 4 ms
7,184 KB
testcase_11 AC 6 ms
12,120 KB
testcase_12 AC 3 ms
6,624 KB
testcase_13 AC 8 ms
12,428 KB
testcase_14 AC 2 ms
5,764 KB
testcase_15 AC 7 ms
12,152 KB
testcase_16 AC 8 ms
10,484 KB
testcase_17 AC 10 ms
12,212 KB
testcase_18 AC 2 ms
5,716 KB
testcase_19 AC 15 ms
12,624 KB
testcase_20 AC 3 ms
6,460 KB
testcase_21 AC 17 ms
12,608 KB
testcase_22 AC 10 ms
12,672 KB
testcase_23 AC 9 ms
12,480 KB
testcase_24 AC 2 ms
5,672 KB
testcase_25 AC 5 ms
9,892 KB
testcase_26 AC 8 ms
12,488 KB
testcase_27 AC 10 ms
12,220 KB
testcase_28 AC 16 ms
12,600 KB
testcase_29 AC 7 ms
12,076 KB
testcase_30 AC 8 ms
12,384 KB
testcase_31 AC 5 ms
11,068 KB
testcase_32 AC 10 ms
12,616 KB
testcase_33 AC 9 ms
12,668 KB
testcase_34 AC 3 ms
6,824 KB
testcase_35 AC 5 ms
11,328 KB
testcase_36 AC 29 ms
12,676 KB
testcase_37 AC 6 ms
11,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll d[1001][1001];
{
	ll@n,@m,@q;
	rep(q){
		ll@a,@b;
		d[a][b]=1;
	}
	rep(x,1,n+1){
		rep(y,1,m+1){
			d[x][y]=max(d[x-1][y-1]+d[x][y],d[x-1][y],d[x][y-1]);
		}
	}
	wt(d[n][m]);
}
0