結果

問題 No.2759 Take Pictures, Elements?
ユーザー tails
提出日時 2024-05-17 23:05:56
言語 cLay
(20241019-1)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 2,744 ms
コンパイル使用メモリ 187,424 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-06-20 13:19:17
合計ジャッジ時間 3,214 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@q,@a[n],c[],d[],@b[q];
rep(i,n){
	c[i]=i;
}
rep(j,q){
	ll w=ll_inf;
	rep(i,n){
		w<?=c[i];
		d[i]=w;
		w+=1;
	}
	w=d[n-1];
	rrep(i,n){
		c[i]=a[i]==b[j]?(w<?=d[i]):ll_inf;
		w+=1;
	}
}
wt(min(c(n)));
0