UVa 10519 - !! Really Strange !!
来源:互联网 发布:it学校哪个好 编辑:程序博客网 时间:2024/05/16 01:16
题意
n个圆圈做多能划分几个区域
思路
目测法
代码
import java.math.*;import java.io.*;import java.util.*;public class Main { static public void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNext()) { BigInteger n = in.nextBigInteger(); if (n.compareTo(BigInteger.ZERO) == 0) { System.out.println("1"); continue; } n = n.multiply(n.subtract(BigInteger.ONE)).add(BigInteger.valueOf(2)); System.out.println(n); } }}
0 0
- UVA 10519 !! Really Strange !!
- UVA 10519 !! Really Strange !!
- UVa:10519 - !! Really Strange !!
- UVa 10519 - !! Really Strange !!
- UVA 10519 !! Really Strange !!
- UVa 10519 - !! Really Strange !!
- uva 10519!! Really Strange !!
- uva 10519 - !! Really Strange !!(规律)
- UVA 10519 - !! Really Strange !!(数论,规律)
- UVa 10519 !! Really Strange !! (递推)
- Really Strange!!
- !! Really Strange !!
- UVa10519 - !! Really Strange !!
- UVA10519 - !! Really Strange !!(数论+高精度)
- UVA 11529 Strange Tax Calculation
- UVA - 11529 Strange Tax Calculation
- UVA 11529 Strange Tax Calculation
- UVA 11529 - Strange Tax Calculation(计数问题)
- 获取url中的文件名
- ubuntu下编译gsoap遇到的一些问题
- 修改文件指定字符串
- ExtJs文件上传组件(UploadDialog)
- 在非服务器用Ip访问SharePoint网站,选择菜单没有响应
- UVa 10519 - !! Really Strange !!
- ExtJs动态grid的生成
- jxl对Excel的读、写、更新以及插入图片
- 我们该如何设计数据库
- Spring IOC容器实现
- git简易使用指南
- mybatis介绍(一)
- mybatis的SQL映射配置文件
- 如何找到最高质量的Netflix英国VPN