POJ1046;Color me less
来源:互联网 发布:mysql 复杂sql语句 编辑:程序博客网 时间:2024/05/16 07:45
#includeusing namespace std;int p[16][3];int main(){for(int i=0;i<16;i++){cin>>p[i][0]>>p[i][1]>>p[i][2];}int x,y,z;while(cin>>x>>y>>z){if(x==-1&&y==-1&&z==-1)break;int tmp,j,distance=99999999;for (int i=0;i<16;i++){tmp=(x-p[i][0])*(x-p[i][0])+(y-p[i][1])*(y-p[i][1])+(z-p[i][2])*(z-p[i][2]);if(tmp{distance=tmp;j=i;}}cout<<"("<<x<<","<<y<<","<<z<<")maps to("<<p[j][0]<<","<<p[j][1]<<","<<p[j][2]<<")"<<endl;}return 0;}
0 0
- poj1046 color me less
- POJ1046;Color me less
- poj1046--Color Me Less
- Color Me Less(POJ1046
- POJ1046 Color Me Less 水题
- POJ1046 Color Me Less(水)
- POJ1046,Color Me Less,心情不爽就去切水
- POJ1046——Color Me Less
- POJ1046 Color Me Less(水题就当玩吧)
- 1046 Color Me Less
- 1067 Color Me Less
- ZOJ1067 Color Me Less
- JOJ1090: Color Me Less
- 1046 Color Me Less
- 1046 Color Me Less
- acm1067-Color Me Less
- poj_1046 Color Me Less
- AOJ186 Color Me Less
- Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js
- 随机函数(1)
- svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
- 可信认证的道德都去哪啦
- error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di
- POJ1046;Color me less
- 是好是坏?天下再无免费认证服务
- iOS学习之(一)按钮使用大全
- centos单机安装配置openstack
- 天底下再也没有免费的认证了
- 《算法导论》笔记 第9章 总结与思考
- NYOJ40公约数和公倍数
- leve,connect_by_isleaf,connect_by_iscycle伪列
- 一步一步完成cocos2dx 2.2 的Android交叉编译