hdu 6225 Little Boxes
来源:互联网 发布:ovid数据库优点 编辑:程序博客网 时间:2024/05/20 10:20
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6225
解析:求四个数的和,大整数加法
代码:
import java.io.*;import java.math.BigInteger;import java.util.*;public class Main { public static Scanner s = new Scanner(System.in); public static void main(String args[]) throws Exception { int t; t = s.nextInt(); while(t-- != 0) { BigInteger x; BigInteger sum = new BigInteger("0"); for (int i = 1; i <= 4; i++) { x = s.nextBigInteger(); sum = sum.add(x); } System.out.println(sum); } }}
阅读全文
0 0
- hdu 6225 Little Boxes
- Hdu 1614 Stacking Boxes
- hdu-4577-X-Boxes
- hdu 4577 X-Boxes
- hdu 4577 X-Boxes
- HDU 4190 - Distributing Ballot Boxes
- hdu 4190 Distributing Ballot Boxes
- HDU 4577 X-Boxes (高精度)
- HDU - 4190 Distributing Ballot Boxes
- HDU-4190-Distributing Ballot Boxes
- HDU 4190 Distributing Ballot Boxes
- HDU 5810 Balls and Boxes
- hdu 5810 Balls and Boxes
- hdu 4190 Distributing Ballot Boxes
- Boxes
- HDU 4190 Distributing Ballot Boxes(二分答案)
- hdu 4190 Distributing Ballot Boxes (二分)
- HDU 4577 X-Boxes (数学+大数除法)
- 八数码问题
- Maven3 快速入门
- 微信小程序入门-事件冒泡、模板、视图渲染
- 2017CCPC秦皇岛 E:String of CCPC
- Qt下MSVC/Mingw平台dump/crash log报告调试方法差异
- hdu 6225 Little Boxes
- String of CCPC(CCPC秦皇岛)
- java 水仙花
- 关于我的博客
- Anton and Chess CodeForces
- 关于Q群-昌盛街街民联合会
- jdbc和反射
- 欢迎使用CSDN-markdown编辑器
- 简单理解IIFE