結果

問題 No.649 ここでちょっとQK!
ユーザー cielciel
提出日時 2018-02-10 16:10:49
言語 cLay
(20231016-1)
結果
AC  
実行時間 2,009 ms / 3,000 ms
コード長 173 bytes
コンパイル時間 1,874 ms
コンパイル使用メモリ 169,844 KB
実行使用メモリ 6,092 KB
最終ジャッジ日時 2023-09-18 23:57:48
合計ジャッジ時間 18,951 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 4 ms
4,476 KB
testcase_04 AC 21 ms
6,032 KB
testcase_05 AC 26 ms
5,608 KB
testcase_06 AC 22 ms
6,092 KB
testcase_07 AC 1 ms
4,384 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 368 ms
5,236 KB
testcase_13 AC 365 ms
5,276 KB
testcase_14 AC 358 ms
5,348 KB
testcase_15 AC 430 ms
5,280 KB
testcase_16 AC 458 ms
5,180 KB
testcase_17 AC 573 ms
5,248 KB
testcase_18 AC 683 ms
5,412 KB
testcase_19 AC 817 ms
5,440 KB
testcase_20 AC 956 ms
5,528 KB
testcase_21 AC 1,116 ms
5,588 KB
testcase_22 AC 1,257 ms
5,656 KB
testcase_23 AC 1,435 ms
5,820 KB
testcase_24 AC 1,620 ms
5,832 KB
testcase_25 AC 1,814 ms
5,932 KB
testcase_26 AC 2,009 ms
6,064 KB
testcase_27 AC 2 ms
4,376 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 2 ms
4,380 KB
testcase_30 AC 370 ms
4,740 KB
testcase_31 AC 467 ms
4,884 KB
testcase_32 AC 1 ms
4,380 KB
testcase_33 AC 1 ms
4,384 KB
testcase_34 AC 2 ms
4,376 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