結果

問題 No.326 あみだますたー
ユーザー %20%20
提出日時 2017-11-09 05:08:09
言語 cLay
(20231016-1)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 1,864 ms
コンパイル使用メモリ 163,924 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-09-18 23:44:31
合計ジャッジ時間 5,914 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

ll N,K,X[2d4],a[100],t,k;
{
	rd(N,K);
	rep(i,K){rd(X[i]);rd(t);}
	a[cin>>t,t-1]=(1..N);
	
	rep(i,N){
		t=a[i];
		t+=(t==X[K..K+k-1])-(t==X[K..]+1);
		X[K+k++]=(t..i);
		X[K+k++]=-(-t+1..~i);
	}

	wt(k);
	wt(X[K..K+k-1],X[K..]+1);
}
0