結果
問題 | No.1705 Mode of long array |
ユーザー |
![]() |
提出日時 | 2021-10-08 22:54:14 |
言語 | cLay (20241019-1) |
結果 |
AC
|
実行時間 | 56 ms / 3,000 ms |
コード長 | 224 bytes |
コンパイル時間 | 4,466 ms |
コンパイル使用メモリ | 182,740 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-07-23 06:04:47 |
合計ジャッジ時間 | 8,421 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 51 |
ソースコード
segtree<ll>t; ll@n,@m; t.walloc(m,1); rep(i,m){ ll@a; t[m-1-i]=-a; } t.build(); ll@q; rep(q){ ll@u,@x,@y; if(u==1){ t.add(m-x,m-x+1,-y); } if(u==2){ t.add(m-x,m-x+1,y); } if(u==3){ wt(m-t.getMinInd(0,m)); } }