結果

問題 No.649 ここでちょっとQK!
ユーザー tailstails
提出日時 2020-11-25 16:59:49
言語 cLay
(20240104-1)
結果
AC  
実行時間 26 ms / 3,000 ms
コード長 275 bytes
コンパイル時間 2,265 ms
コンパイル使用メモリ 160,640 KB
実行使用メモリ 7,224 KB
最終ジャッジ日時 2023-09-19 01:52:42
合計ジャッジ時間 4,580 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,296 KB
testcase_01 AC 2 ms
5,420 KB
testcase_02 AC 2 ms
5,572 KB
testcase_03 AC 5 ms
4,376 KB
testcase_04 AC 26 ms
7,120 KB
testcase_05 AC 12 ms
6,804 KB
testcase_06 AC 12 ms
7,224 KB
testcase_07 AC 2 ms
5,668 KB
testcase_08 AC 2 ms
5,340 KB
testcase_09 AC 2 ms
5,340 KB
testcase_10 AC 2 ms
5,296 KB
testcase_11 AC 2 ms
5,348 KB
testcase_12 AC 9 ms
6,660 KB
testcase_13 AC 9 ms
6,796 KB
testcase_14 AC 9 ms
6,536 KB
testcase_15 AC 12 ms
6,800 KB
testcase_16 AC 11 ms
6,984 KB
testcase_17 AC 14 ms
6,916 KB
testcase_18 AC 16 ms
6,988 KB
testcase_19 AC 17 ms
7,052 KB
testcase_20 AC 18 ms
7,108 KB
testcase_21 AC 20 ms
7,076 KB
testcase_22 AC 21 ms
7,092 KB
testcase_23 AC 22 ms
7,064 KB
testcase_24 AC 23 ms
7,224 KB
testcase_25 AC 24 ms
7,176 KB
testcase_26 AC 26 ms
7,128 KB
testcase_27 AC 2 ms
5,476 KB
testcase_28 AC 2 ms
5,456 KB
testcase_29 AC 3 ms
5,484 KB
testcase_30 AC 7 ms
6,056 KB
testcase_31 AC 10 ms
6,520 KB
testcase_32 AC 2 ms
5,416 KB
testcase_33 AC 2 ms
5,296 KB
testcase_34 AC 2 ms
5,612 KB
testcase_35 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{
	Heap<ll>a,b;
	a.walloc(2d5);
	b.walloc(2d5);
	ll@q,@k;
	rep(q){
		ll@t;
		if(t<2){
			t=-rd_ll();
			if(a.size==k-1){
				if(t>a.val[0]){
					swap(t,a.val[0]);
					a.down();
				}
				b.push(-t);
			}else{
				a.push(t);
			}
		}else{
			wt(b.size?b.pop():-1);
		}
	}
}
0