結果

問題 No.1996 <><
ユーザー tailstails
提出日時 2023-03-14 16:44:45
言語 cLay
(20240104-1)
結果
AC  
実行時間 705 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 3,153 ms
コンパイル使用メモリ 177,660 KB
実行使用メモリ 7,688 KB
最終ジャッジ日時 2023-10-18 11:53:46
合計ジャッジ時間 7,189 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,668 KB
testcase_01 AC 3 ms
7,668 KB
testcase_02 AC 3 ms
7,668 KB
testcase_03 AC 3 ms
7,668 KB
testcase_04 AC 3 ms
7,668 KB
testcase_05 AC 3 ms
7,668 KB
testcase_06 AC 3 ms
7,668 KB
testcase_07 AC 3 ms
7,668 KB
testcase_08 AC 2 ms
7,668 KB
testcase_09 AC 2 ms
7,668 KB
testcase_10 AC 2 ms
7,668 KB
testcase_11 AC 705 ms
7,688 KB
testcase_12 AC 2 ms
7,684 KB
testcase_13 AC 2 ms
7,684 KB
testcase_14 AC 8 ms
7,684 KB
testcase_15 AC 41 ms
7,680 KB
testcase_16 AC 174 ms
7,680 KB
testcase_17 AC 23 ms
7,680 KB
testcase_18 AC 299 ms
7,684 KB
testcase_19 AC 412 ms
7,684 KB
testcase_20 AC 562 ms
7,688 KB
testcase_21 AC 69 ms
7,680 KB
testcase_22 AC 92 ms
7,684 KB
testcase_23 AC 3 ms
7,668 KB
testcase_24 AC 103 ms
7,684 KB
testcase_25 AC 31 ms
7,680 KB
testcase_26 AC 371 ms
7,684 KB
testcase_27 AC 57 ms
7,676 KB
testcase_28 AC 2 ms
7,668 KB
testcase_29 AC 155 ms
7,680 KB
testcase_30 AC 7 ms
7,668 KB
testcase_31 AC 21 ms
7,676 KB
testcase_32 AC 4 ms
7,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@k,@a[n];
string@s;
Mint d[n];
rep(i,n) d[i]=1;
rep(i,k){
	ll p=(s[i]=='<'?1:-1);
	rrep(j,i,n-(k-1-i)){
		Mint z;
		rep(l,i,j){
			z+=((a[l]-a[j])*p<0)*d[l];
		}
		d[j]=z;
	}
}
wt(sum(d(n)));
0