求助,九度1020
来源:互联网 发布:mac版yy进频道失败 编辑:程序博客网 时间:2024/06/03 18:45
一直显示wrong
#include<stdlib.h>#include<stdio.h>#include<string>#include<cstring>#include<algorithm>#include<math.h>#include<queue>using namespace std;typedef struct{ int x,y;}point;bool cmp1(point a,point b){ return a.x<b.x;}bool cmp2(point a,point b){ return a.y<b.y;}point p[100];int main(){ int i,j,a,b,l; while(scanf("%d %d",&a,&b)!=EOF&&a!=0&&b!=0) { if(a>=231) a=230; if(a<=-231) a=-230; if(b>=231) b=230; if(b<=-231) b=-230; l=0; p[l].x=a; p[l++].y=b; while(scanf("%d %d",&a,&b)!=EOF&&a!=0&&b!=0) { if(a>=231) a=230; if(a<=-231) a=-230; if(b>=231) b=230; if(b<=-231) b=-230; p[l].x=a; p[l++].y=b; } sort(p,p+l,cmp1); int minx=p[0].x,maxx=p[l-1].x; sort(p,p+l,cmp2); int miny=p[0].y,maxy=p[l-1].y; printf("%d %d %d %d\n",minx,miny,maxx,maxy); }}
0 0
- 求助,九度1020
- 求助
- 求助
- 求助
- 求助
- 求助
- 求助
- 求助!!
- 求助!!
- 求助
- 求助
- 求助
- 求助
- 求助
- 求助
- 求助
- 求助
- 求助!!!!
- 《Thinking in Java》十七章_容器深入研究_练习12(Page484)
- 谷歌学术无法找到的东西用下面的链接
- #2016多校训练Contest10: 1002 Hard problem hdu5858
- ImageMagick使用小节
- ServletContext简介
- 求助,九度1020
- 索引的选择原则
- shape的使用
- 数据结构实验之排序四:寻找大富翁
- 自定义接口进行传值
- python - 文件下载
- 最近在ubunto下搞android遇到的一些坑,持续更新
- C#WinForm上传文件的方案
- servletcontext读取web资源文件