2015年6月2日

使用C++的string实现高精度加法运算

摘要: 对于超大数字的运算,用long long int仍然不能解决,这时候就需要考虑通过模拟运算和数组存储来实现高精度运算。 本文讨论借助C++的string来实现高精度的运算。 首先输入的量直接存储为string,设为s1和s2。 接下来设计一个反转函数,用于把整个字符串反转(为了方便后续计算)。 ... 阅读全文

posted @ 2015-06-02 20:58 张大大123 阅读(658) 评论(0) 推荐(0) 编辑

1025. PAT Ranking (25)

摘要: 题目如下: Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed ... 阅读全文

posted @ 2015-06-02 20:38 张大大123 阅读(153) 评论(0) 推荐(0) 编辑

导航