简单题,随便找一条棱,平均分成n份即可。
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
![](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
#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;}