随笔分类 -  基本算法-高精度计算

摘要:不用map用hash import java.io. ; import java.util. ; import java.util.Scanner; import java.math.BigInteger; import java.lang. ; public class Main{ static 阅读全文
posted @ 2018-05-05 00:17 Roni_i 阅读(142) 评论(0) 推荐(0) 编辑
摘要:import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in... 阅读全文
posted @ 2018-03-20 11:46 Roni_i 阅读(272) 评论(0) 推荐(0) 编辑
摘要:D. Almost Difference time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Let's denote a func 阅读全文
posted @ 2017-12-13 13:07 Roni_i 阅读(304) 评论(0) 推荐(0) 编辑
摘要:头文件 import java.io.*; import java.math.*; 读入 Scanner cin = Scann(System.in); while(cin.hasNext()) <-> !=EOF n = cin.nextInt(); <-> 读入一个int数 n = cin.ne 阅读全文
posted @ 2017-11-21 21:13 Roni_i 阅读(311) 评论(0) 推荐(0) 编辑
摘要:1873 初中的算术 基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注 1873 初中的算术 基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 1873 初中的算术 基准时间限制:1 秒 空间限制:131072 KB 分 阅读全文
posted @ 2017-11-04 15:17 Roni_i 阅读(188) 评论(0) 推荐(0) 编辑
摘要:大数加法 /* 给出2个大整数A,B,计算A+B的结果。 Input 第1行:大数A 第2行:大数B (A,B的长度 <= 10000 需注意:A B有可能为负数) Output 输出A + B Input示例 68932147586 468711654886 Output示例 5376438024 阅读全文
posted @ 2017-10-06 19:03 Roni_i 阅读(312) 评论(0) 推荐(0) 编辑
摘要:Problem Description Apple is Taotao's favourite fruit. In his backyard, there are three apple trees with coordinates (x1,y1) , (x2,y2) , and (x3,y3) . 阅读全文
posted @ 2017-09-17 17:16 Roni_i 阅读(385) 评论(0) 推荐(0) 编辑
摘要:Problem Description Ruins is driving a car to participating in a programming contest. As on a very tight schedule, he will drive the car without any s 阅读全文
posted @ 2017-09-12 09:48 Roni_i 阅读(293) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示