随笔分类 - 算法-高精度
摘要:CF691C Exponential notation 洛谷评测传送门 题目描述 You are given a positive decimal number xx . Your task is to convert it to the "simple exponential notation".
阅读全文
摘要:洛谷 P1080 国王游戏 "洛谷传送门" JDOJ 1780: [NOIP2012]国王游戏 D1 T2 "JDOJ传送门" Description 恰逢 H 国国庆,国王邀请 n 位大臣来玩一个有奖游戏。首先,他让每个大臣在左、右手上面分别写下一个整数,国王自己也在左、右手上各写一个整数。然后,
阅读全文
摘要:JDOJ 1790: 高精度A B "JDOJ传送门" 洛谷 P2142 高精度减法 "洛谷传送门" 题目描述 高精度减法 输入格式 两个整数a,b(第二个可能比第一个大) 输出格式 结果(是负数要输出负号) 输入输出样例 输入 1 复制 输出 1 复制 说明/提示 20%数据a,b在long lo
阅读全文
摘要:JDOJ 1789: 高精度A+B "JDOJ传送门" 洛谷 P1601 A+B Problem(高精) "洛谷传送门" Description 已知两个整数A、B 求A+B Input 第一行为A 第二行为B Output 输出一行为A+B的结果 Sample Input 5 6 Sample O
阅读全文
摘要:洛谷 P1149 火柴棒等式 "洛谷传送门" JDOJ 1540: [NOIP2008]火柴棒等式 T2 "JDOJ传送门" Description 给你n根火柴棍,你可以拼出多少个形如“A+B=C”的等式?等式中的A、B、C是用火柴棍拼出的整数(若该数非零,则最高位不能是0)。用火柴棍拼数字0 9
阅读全文
摘要:洛谷 P1037 产生数 https://www.luogu.org/problemnew/show/P1037 JDOJ 1298: [NOIP2002]产生数 T3 https://neooj.com:8082/oldoj/problem.php?id=1298 题目描述 给出一个整数n(n<1
阅读全文
摘要:洛谷 P1106 删数问题 https://www.luogu.org/problemnew/show/P1106 JDOJ 2898: 删数问题 https://neooj.com:8082/oldoj/problem.php?id=2898 Description 输入一个高精度的正整数N,去掉
阅读全文