(计算几何8.1.3.1)UVA 10213 How Many Pieces of Land?(使用欧拉公式的应用顶点数+面数-棱数 = 2)
来源:互联网 发布:java中%是什么意思 编辑:程序博客网 时间:2024/05/12 06:41
import java.math.BigInteger;import java.util.Scanner;public class UVA_10213 {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);int t = scanner.nextInt();while(t > 0){int n = scanner.nextInt();BigInteger ans = new BigInteger(n +"").pow(4).subtract(new BigInteger(n +"").pow(3).multiply(new BigInteger(6+""))).add(new BigInteger(23+"").multiply(new BigInteger(n +"").pow(2) ).subtract(new BigInteger(18+"").multiply(new BigInteger(n +"")))).divide(new BigInteger(24+"")).add(new BigInteger(1+""));System.out.println(ans);t--;}}}
- (计算几何8.1.3.1)UVA 10213 How Many Pieces of Land?(使用欧拉公式的应用顶点数+面数-棱数 = 2)
- UVa 10213 How Many Pieces of Land ? (数学&欧拉公式&高精度)
- UVA 10213 How Many Pieces of Land? 欧拉定理
- UVa 10213 How Many Pieces of Land (欧拉定理)
- uva 10213 how many pieces of land
- UVA-10213 How many pieces of land
- UVa 10213 How Many Pieces of Land?
- UVa 10213 How Many Pieces of Land ?
- UVa Problem Solution: 10213 - How Many Pieces of Land?
- UVA 10213(p336)----How Many Pieces of Land
- uva 10213 How Many Pieces of Land 分割圆 高精度
- How many pieces of land?
- UVa Problem 10213 How Many Pieces of Land? (土地分割)
- 【UVA】10213 - How Many Pieces of Land ?(大树模板X2)
- uva_10213 - How Many Pieces of Land ?
- UVaOj How many pieces of land?
- UVa10213 - How Many Pieces of Land ?
- 110602 How Many Pieces of Land
- 快速排序(觉得这样的理解很不错,所以决定转载下)
- 洗扑克牌算法
- 常用网络命令
- mini2440裸机编程--------触摸屏驱动
- Excel-使用技巧-标题设计
- (计算几何8.1.3.1)UVA 10213 How Many Pieces of Land?(使用欧拉公式的应用顶点数+面数-棱数 = 2)
- linux fork 和 vfork
- Android fill_parent、wrap_content和match_parent的区别
- yum
- Linux下Apache不解析PHP(以Ubuntu12.04为例)
- 协方差的意义和计算公式
- 被iPhone取代 iPod无可奈何花落去
- 工作心得总结
- 电脑高手教你认训电脑进程