結果

問題 No.1705 Mode of long array
ユーザー tailstails
提出日時 2021-10-09 12:37:57
言語 cLay
(20240104-1)
結果
AC  
実行時間 28 ms / 3,000 ms
コード長 288 bytes
コンパイル時間 3,536 ms
コンパイル使用メモリ 176,368 KB
実行使用メモリ 7,416 KB
最終ジャッジ日時 2023-10-10 21:51:56
合計ジャッジ時間 6,938 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,356 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 2 ms
4,352 KB
testcase_05 AC 2 ms
4,352 KB
testcase_06 AC 2 ms
4,352 KB
testcase_07 AC 2 ms
4,352 KB
testcase_08 AC 2 ms
4,352 KB
testcase_09 AC 2 ms
4,352 KB
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 2 ms
4,352 KB
testcase_12 AC 2 ms
4,352 KB
testcase_13 AC 15 ms
6,404 KB
testcase_14 AC 11 ms
5,580 KB
testcase_15 AC 8 ms
4,768 KB
testcase_16 AC 10 ms
4,900 KB
testcase_17 AC 7 ms
5,012 KB
testcase_18 AC 7 ms
4,672 KB
testcase_19 AC 12 ms
5,316 KB
testcase_20 AC 8 ms
5,032 KB
testcase_21 AC 13 ms
6,112 KB
testcase_22 AC 18 ms
6,684 KB
testcase_23 AC 8 ms
4,364 KB
testcase_24 AC 8 ms
4,676 KB
testcase_25 AC 8 ms
4,364 KB
testcase_26 AC 7 ms
4,364 KB
testcase_27 AC 8 ms
4,648 KB
testcase_28 AC 8 ms
4,496 KB
testcase_29 AC 8 ms
4,388 KB
testcase_30 AC 8 ms
4,452 KB
testcase_31 AC 8 ms
4,440 KB
testcase_32 AC 8 ms
4,404 KB
testcase_33 AC 23 ms
6,732 KB
testcase_34 AC 22 ms
6,740 KB
testcase_35 AC 22 ms
6,992 KB
testcase_36 AC 22 ms
6,800 KB
testcase_37 AC 23 ms
6,756 KB
testcase_38 AC 23 ms
6,800 KB
testcase_39 AC 22 ms
6,892 KB
testcase_40 AC 24 ms
6,708 KB
testcase_41 AC 24 ms
6,740 KB
testcase_42 AC 23 ms
6,716 KB
testcase_43 AC 18 ms
7,416 KB
testcase_44 AC 18 ms
7,316 KB
testcase_45 AC 18 ms
7,340 KB
testcase_46 AC 18 ms
7,292 KB
testcase_47 AC 18 ms
7,288 KB
testcase_48 AC 18 ms
7,324 KB
testcase_49 AC 27 ms
7,120 KB
testcase_50 AC 27 ms
6,872 KB
testcase_51 AC 28 ms
6,876 KB
testcase_52 AC 27 ms
7,000 KB
testcase_53 AC 27 ms
6,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

LHeap<__uint128_t>h;
ll@n,@m;
h.walloc(m,1);
rep(i,m){
	ll@a;
	h.change(i,~(__uint128_t(a)<<64|i));
}
ll@q;
rep(q){
	ll@u,@x,@y;
	if(u==1){
		h.change(x-1,h.val[x-1]-(__uint128_t(y)<<64));
	}
	if(u==2){
		h.change(x-1,h.val[x-1]+(__uint128_t(y)<<64));
	}
	if(u==3){
		wt(h.hp[0]+1);
	}
}
0