結果

問題 No.1996 <><
ユーザー tailstails
提出日時 2023-03-14 16:27:55
言語 cLay
(20240104-1)
結果
TLE  
実行時間 -
コード長 293 bytes
コンパイル時間 4,666 ms
コンパイル使用メモリ 177,700 KB
実行使用メモリ 11,816 KB
最終ジャッジ日時 2023-10-18 11:52:51
合計ジャッジ時間 13,820 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,736 KB
testcase_01 AC 2 ms
7,736 KB
testcase_02 AC 3 ms
7,736 KB
testcase_03 AC 3 ms
7,736 KB
testcase_04 AC 2 ms
7,736 KB
testcase_05 AC 2 ms
7,736 KB
testcase_06 AC 2 ms
7,736 KB
testcase_07 AC 2 ms
7,736 KB
testcase_08 AC 2 ms
7,736 KB
testcase_09 AC 2 ms
7,736 KB
testcase_10 AC 3 ms
7,736 KB
testcase_11 AC 1,336 ms
7,756 KB
testcase_12 TLE -
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@k,@a[n];
string@s;
Mint d[n];
rep(i,n) d[i]=1;
rep(i,k){
	if(s[i]=='<'){
		rrep(j,n){
			Mint z;
			rep(l,j){
				if(a[l]<a[j]) z+=d[l];
			}
			d[j]=z;
		}
	}else{
		rrep(j,n){
			Mint z;
			rep(l,j){
				if(a[l]>a[j]) z+=d[l];
			}
			d[j]=z;
		}
	}
}
Mint z;
rep(i,n) z+=d[i];
wt(z);
0