博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
poj3103
阅读量:7250 次
发布时间:2019-06-29

本文共 417 字,大约阅读时间需要 1 分钟。

简单题,随便找一条棱,平均分成n份即可。

View Code
#include 
#include
#include
#include
using namespace std;int main(){ //freopen("t.txt", "r", stdin); int x, y, z, n; scanf("%d%d%d%d", &x, &y, &z, &n); for (int i = 0; i < n; i++) printf("%.8f %.8f %.8f %.8f %.8f %.8f\n", x * 1.0 / n * i, 0.0, 0.0, x * 1.0 / n * (i + 1), y * 1.0, z * 1.0); return 0;}

转载地址:http://pfhbm.baihongyu.com/

你可能感兴趣的文章
QT学习之QString
查看>>
javascript 面向对象编程(一):封装
查看>>
vim常用指令及快捷键(持续更新)
查看>>
php hash函数
查看>>
链表的基本操作
查看>>
统计日志10分钟内出现的次数
查看>>
python开发函数进阶:内置函数
查看>>
sssssss
查看>>
责任链模式实例:扣除用户金币/写入金币明细/发送消息
查看>>
4.09.3
查看>>
Silverlight之布局
查看>>
今天去参加了“欧特克高端影视动画解决方案研讨会”
查看>>
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
查看>>
python中type、object与class之间关系(一切皆对象)
查看>>
Delphi中ShellExecute的妙用
查看>>
汽车常识全面介绍 - 安全防护
查看>>
26/02/2009 ECONOMICS REPORT - Obama Proposes $3.5 Trillion Budget for 2010
查看>>
Installing GCC 简单方法
查看>>
Thinkphp中验证码不显示解决办法
查看>>
ASP.NET MVC如何做一个简单的非法登录拦截
查看>>