結果

問題 No.1705 Mode of long array
ユーザー tailstails
提出日時 2021-10-09 12:37:57
言語 cLay
(20241019-1)
結果
AC  
実行時間 27 ms / 3,000 ms
コード長 288 bytes
コンパイル時間 4,454 ms
コンパイル使用メモリ 177,992 KB
実行使用メモリ 8,900 KB
最終ジャッジ日時 2024-09-13 01:22:04
合計ジャッジ時間 7,387 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 51
権限があれば一括ダウンロードができます

ソースコード

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