高精度加法(A+B問題)

A+B,作爲算法競賽中最難的一題(霧),總是吸引着廣大程序員想盡一切算法想要去AC它: 這裏提供一種高精度的做法: #include <iostream> #define maxn 10000000 + 5 using namespace std; string in; int a[maxn], b[maxn], c[maxn];//分別爲兩個加數、和 int l1, l2, l3;//三個數組
相關文章
相關標籤/搜索