結果

問題 No.649 ここでちょっとQK!
ユーザー cielciel
提出日時 2018-02-10 16:10:01
言語 cLay
(20240104-1)
結果
AC  
実行時間 2,010 ms / 3,000 ms
コード長 192 bytes
コンパイル時間 2,271 ms
コンパイル使用メモリ 169,896 KB
実行使用メモリ 6,172 KB
最終ジャッジ日時 2023-09-18 23:58:20
合計ジャッジ時間 19,451 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 5 ms
4,384 KB
testcase_04 AC 21 ms
5,980 KB
testcase_05 AC 25 ms
5,604 KB
testcase_06 AC 22 ms
6,028 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 2 ms
4,384 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 1 ms
4,380 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 371 ms
5,200 KB
testcase_13 AC 366 ms
5,236 KB
testcase_14 AC 359 ms
5,304 KB
testcase_15 AC 431 ms
5,236 KB
testcase_16 AC 457 ms
5,236 KB
testcase_17 AC 573 ms
5,288 KB
testcase_18 AC 683 ms
5,424 KB
testcase_19 AC 821 ms
5,432 KB
testcase_20 AC 956 ms
5,520 KB
testcase_21 AC 1,115 ms
5,664 KB
testcase_22 AC 1,260 ms
5,880 KB
testcase_23 AC 1,439 ms
5,792 KB
testcase_24 AC 1,619 ms
5,856 KB
testcase_25 AC 1,828 ms
5,936 KB
testcase_26 AC 2,010 ms
6,172 KB
testcase_27 AC 2 ms
4,384 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 2 ms
4,380 KB
testcase_30 AC 371 ms
4,920 KB
testcase_31 AC 466 ms
4,872 KB
testcase_32 AC 1 ms
4,504 KB
testcase_33 AC 2 ms
4,380 KB
testcase_34 AC 2 ms
4,380 KB
testcase_35 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{
	deque<ll>v;ll Q,K,q,n;rd(Q,K);
	rep(i,Q){if(rd(q),q<2)
		rd(n),v.insert(lower_bound(v.begin(),v.end(),n),n);
	else if(v.size()<K)
		wt(-1);
	else
		wt(n=v[K-1]),v.erase(v.begin()+K-1);
	}
}
0