priority_queue
rvbelo61389@chacuo.net
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cin.tie(nullptr)>ios::sync_with_stdio(false);
cout.tie(nullptr)>ios::sync_with_stdio(false);
:loop
1.exe
2.exe
3.exe
fc 2.out 3.out
if errorlevel==1 pause
goto loop
https://www.luogu.com.cn/training/829770#problems
https://www.mxoj.net/login
一本通:shnb hjh3102
V:HJH_believe
play.mc.js.cool/1.8/
poki.com/zh
https://www.luogu.com.cn/problem/U527815
www.crazygames.com
edge://surf/
8.9-8.16
小号:HJH_H(密码:hjh3102)
82是82 84是84 怎能混为一谈 自从上了84后 感觉时间都变慢了 原来是天上一天地上一年 你82我84 你是凡人我是仙 我84 你82 此生注定是遗憾 差之毫厘 谬以千里 即使差2分也是差 82和84两者是天壤之别
https://lab.magiconch.com/nbnhhsh/
__builtin_popcount(i)
身与天齐心自阔,平生襟抱此时开
树欲静而风不止,我欲静而万物生
326271
上与下或
https://www.cspfirstround.com/
https://www.cnblogs.com/daiyulong/p/19124966
https://webclipboard.online/zh-cn/#730929
https://hx.nobook.com/console/templates/resource
https://2048game.com/
P11216
2026.10.21:
『AZOI 出题组』J+ 模拟T3:
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int N=1100;
int a[N],n,k;
int f1[N][N],f2[N][N];
signed main(){
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
cin>>n>>k;
memset(f2,127,sizeof(f2));
memset(f1,-127,sizeof(f1));
for(int i=1;i<=n;i++){
cin>>a[i];
}
f1[0][0]=f2[0][0]=0;
for(int l=1;l<=k;l++){
for(int i=l;i<=n;i++){
int mx=LLONG_MIN,mi=LLONG_MAX;
for(int j=i;j>=l;j--){
mx=max(mx,a[j]);
mi=min(mi,a[j]);
if(f1[i][l]<f1[j-1][l-1]+mi){
f1[i][l]=f1[j-1][l-1]+mi;
f2[i][l]=f2[j-1][l-1]+mx;
}
else if(f1[i][l]==f1[j-1][l]+mi){
f2[i][l]=min(f2[j-1][l-1]+mx,f2[i][l]);
}
}
}
}
cout<<f1[n][k]<<" "<<f2[n][k]<<"\n";
return 0;
}
/*
*/英勇双枪将,风流万户侯。 and 没羽箭???
H_Dimension
https://www.temptom.com/
edge://surf
【第一届 RSMK 杯个人赛 T4】
时间复杂度:O(nlogn+qlognlogV)。其中 V 是值域大小。
#include <bits/stdc++.h>
#define int long long
using namespace std;
inline int input();
void print(int x);
constexpr int N=2e5+1;
int n,q,a[N],tree[4*N],maxn[4*N];
inline void pushup(int p){
tree[p]=tree[p<<1]+tree[p<<1|1];
maxn[p]=max(maxn[p<<1],maxn[p<<1|1]);
}
void build(int l,int r,int p){
if (l==r){
tree[p]=maxn[p]=a[l];
return;
}
int M=l+((r-l)>>1);
build(l,M,p<<1);
build(M+1,r,p<<1|1);
pushup(p);
}
void update(int l,int r,int mod,int x,int y,int p){
if (maxn[p]<mod) return;
if (x==y){
tree[p]%=mod;
maxn[p]=tree[p];
return;
}
int M=x+((y-x)>>1);
if (l<=M) update(l,r,mod,x,M,p<<1);
if (r>M) update(l,r,mod,M+1,y,p<<1|1);
pushup(p);
}
int getsum(int l,int r,int x,int y,int p){
if (l<=x&&y<=r) return tree[p];
int M=x+((y-x)>>1),sum=0;
if (l<=M) sum+=getsum(l,r,x,M,p<<1);
if (r>M) sum+=getsum(l,r,M+1,y,p<<1|1);
return sum;
}
signed main(void){
n=input(),q=input();
for (int i = 1;i<=n;i++) a[i]=input();
build(1,n,1);
while (q--){
int op=input(),l=input(),r=input();
if (op==1){
int x=input();
update(l,r,x,1,n,1);
}
else print(getsum(l,r,1,n,1)),puts("");
}
return 0;
}
inline int input(){int x=0,f=1;char c=getchar();while (!isdigit(c)){if (c=='-') f=-1;c=getchar();}while (isdigit(c)){x=x*10+c-'0';c=getchar();}return x*f;}
void print(int x){if (x<0){putchar('-');x=-x;}if (x<10) putchar(x+'0');else{print(x/10);putchar(x%10+'0');}}
P1967 P1396 P2939 P4568 P1983 P2661 P2176 P1137 P3916 P2419 P1522 P1491
P1341 P1629 P1351 P1993 P3387 P4017 P2746 P2002 P1656 P3958 P2573 P1113 P1131 P2330 P1894 P1547 P1726 P2863 P3063 P2700
P1020、P1420、P1824、P1873、P2249、P2367、P3397、P2867、P5195、P8628、P1358、P1908、P1177、P1082、P1439、P1452、P1939、P2197、P2483、P2495、P2580、P2613、P2617、P2742
树欲静而风不止,我欲静而万物生
冠军质检员(永远的冠军)
dimension reduction attack