
高精度问题
土方
这个作者很懒,什么都没留下…
展开
-
hdu1013-字符相加
1013 输出的数必须是一位数,24 = 2+4 =6 39 = 3+9 =12,12 = 1+2 =3 所以输出3 --------------------------------------------------------------------------------------------------------------------------------------原创 2016-08-05 15:53:08 · 536 阅读 · 0 评论 -
hdu1402-大数相乘
1402 。。又超时了 QAQ #include #include using namespace std; string pre(string &a) { int i = 0; if (a[0]!='0') return a; while (a[i] == '0') i++; a = a.substr(i,a.length()-1);原创 2016-08-02 20:16:05 · 372 阅读 · 0 评论 -
hdu1002-大数相加
1002 #include #include using namespace std; string pre(string &a) { int i = 0; if (a[0]!='0') return a; while (a[i] == '0') i++; a = a.substr(i,a.length()-1); //删除前面的0,如00原创 2016-08-02 12:26:01 · 283 阅读 · 0 评论