
高精度汇总
gz153016
格局,品味
展开
-
落谷 P1601 A+B Problem(高精)
题目背景无题目描述高精度加法,x相当于a+b problem,[b][color=red]不用考虑负数[/color][/b]输入格式分两行输入a,b<=10^500输出格式输出只有一行,代表A+B的值输入输出样例输入11输出2#include<bits/stdc++.h>using namespace std;int main(){ int a...原创 2019-06-01 10:58:56 · 220 阅读 · 0 评论 -
落谷-P4326 [COCI2006-2007#1] Herman
题目描述The 19th century German mathematician Hermann Minkowski investigated a non-Euclidian geometry, called the taxicab geometry. In taxicab geometry the distance between two points T1(x1, y1) and T2(x...原创 2019-06-01 16:31:07 · 211 阅读 · 0 评论 -
落谷P2142 高精度减法
题目描述高精度减法输入输出格式输入格式:两个整数a,b(第二个可能比第一个大)输出格式:结果(是负数要输出负号)输入输出样例输入:21输出:1说明20%数据a,b在long long范围内100%数据0<a,b<=10的10000次方#include<bits/stdc++.h>#include<cstring>using n...原创 2019-06-04 18:00:00 · 226 阅读 · 0 评论