ZOJ 3903 Ants (纯数学知识)

这篇博客介绍了名为Alice的蚂蚁在立方体表面寻找从一个顶点到相对顶点最短路径的问题。给定立方体最长边的长度n,任务是求所有可能立方体的最短路径平方和,模1000000007。博客包含一个输入输出示例,并提示两个不同排列的边长被视为相同的立方体。
摘要由CSDN通过智能技术生成

Ant


Time Limit: 1 Second      Memory Limit: 32768 KB


There is an ant named Alice. Alice likes going hiking very much. Today, she wants to climb a cuboid. The length of cuboid's longest edge is n, and the other edges are all positive integers. Alice's starting point is a vertex of this cuboid, and she wants to arrive at the opposite vertex. The opposite vertex means the vertex which has no common planes or edges with the starting point. Just like the picture below:

mtz9548_ant_pic1.gif

Alice is very clever, she always walks on the shortest p

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值