- 高兴
全网寻找余永乐!!!
- 2025-6-5 22:35:44 @
找到余永乐请立刻通知我,谢谢 特征:1带着唐人眼镜 2来自四川 3白白胖胖充满希望 4唐 5uid=776
1 条评论
-
蒙雨泽 LV 2 @ 2025-7-7 19:35:22
#include<bits/stdc++.h>
using namespace std;
int a,b;
int main()
{
int n,m;
cin>>n>>m;
a=n;
b=n;
for(int i=1;i<=m;i++)
{
int x,y;
cin>>x>>y;
if(x<a || y<b)
{
if(((b-y)*a)<((a-x)*b))
{
b=y;
}
else
{
a=x;
}
}
}
cout<<a*b;
return 0;
}
- 1
信息
- ID
- 51
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- 递交数
- 390
- 已通过
- 92
- 上传者