FA乄Q

$\color{#DC143C}{国服}$$\color{#8B0000}{力量}$$\color{#40E0D0}{狗}$

4459

DDF

FLY_4
whale77
Kx233
cross
lemon_09

ASCLL码
fuyuxuan

LightQuantum

matinal
1只小牛马
Andy2035
Sopher

FA乄Q
4小时前
ང་ནི་གླེན་པ་ཞིག་རེད།

FA乄Q
6小时前

FA乄Q
7小时前
#include<bits/stdc++.h>
using namespace std;
typedef pair<int,int>PII;
#define x first
#define y second
const int N=50010,INF=0x3f3f3f3f;
int n;
PII a[N];
int xs[N],ys[N];
unordered_map<int,int>mp1;
unordered_map<int,int>mp2;
int main(){
scanf("%d",&n);
int mx1=INF,mx2=1,my1=INF,my2=1;
for(int i=1;i<=n;++i){
int x,y;
scanf("%d%d",&x,&y);
xs[i]=x;
ys[i]=y;
a[i]={x,y};
mp1[x]++;
mp2[y]++;
}
sort(xs+1,xs+n+1);
sort(ys+1,ys+n+1);
long long ans=1e16;
for(int i=1;i<=n;++i){
int x=a[i].x,y=a[i].y;
int mx1=xs[1],mx2=xs[n],my1=ys[1],my2=ys[n];
if(x==xs[1]||x==xs[n]||y==ys[1]||y==ys[n]){
if(mp1[x]==1){
if(x==xs[1])mx1=xs[2];
else if(x==xs[n])mx2=xs[n-1];
}
if(mp2[y]==1){
if(y==ys[1])my1=ys[2];
else if(y==ys[n])my2=ys[n-1];
}
ans=min(ans,1LL*(mx2-mx1)*(my2-my1));
}
}
printf("%lld\n",ans);
return 0;
}


FA乄Q
7小时前
$\color{#FF0000}{曹}$,我网易MC大号又被封了

FA乄Q
1天前
#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int q[N];
int main(void){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)scanf("%d",&q[i]);
int res=INT_MAX;
for(int i=0;i<n;i++){
int cnt=0;
for(int j=0;j<n;j++)
cnt+=q[(i+j)%n]*j;
res=min(res,cnt);
}
printf("%d\n",res);
return 0;
}


FA乄Q
2天前

FA乄Q
2天前

FA乄Q
2天前

FA乄Q
2天前
AcWing【集日历瓜分10000AC币活动】赠送1月日历！https://www.acwing.com/file_system/gui/taskbar/widgets/clock/calendar/send/97513/1/c85d44b3/ AcWing【集日历瓜分10000AC币活动】赠送2月日历！https://www.acwing.com/file_system/gui/taskbar/widgets/clock/calendar/send/97513/2/b849ff36/ AcWing【集日历瓜分10000AC币活动】赠送3月日历！https://www.acwing.com/file_system/gui/taskbar/widgets/clock/calendar/send/97513/3/ef241721/ AcWing【集日历瓜分10000AC币活动】赠送4月日历！https://www.acwing.com/file_system/gui/taskbar/widgets/clock/calendar/send/97513/4/26fa59ed/ AcWing【集日历瓜分10000AC币活动】赠送8月日历！https://www.acwing.com/file_system/gui/taskbar/widgets/clock/calendar/send/97513/8/a9d00abd/ AcWing【集日历瓜分10000AC币活动】赠送11月日历！https://www.acwing.com/file_system/gui/taskbar/widgets/clock/calendar/send/97513/11/888baf96/ AcWing【集日历瓜分10000AC币活动】赠送12月日历！https://www.acwing.com/file_system/gui/taskbar/widgets/clock/calendar/send/97513/12/76f4104f/ $\color{red}{不要全收走哈，留点给人家}$

FA乄Q
2天前