会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
天子笑!分你一坛
博客园
首页
新随笔
联系
订阅
管理
2020年3月2日
大数加法
摘要: 思路:1.将两个大数分别存入两个字符串数组中,倒序放入两个整型数组中。 2.在加法运算时,一一对应相加放入ans[ ],满十进一,记录len_ans。 3.判断要不要保留最高位。 int temp_a[1005]; int temp_b[1005]; int ans[1005] = {0}; voi
阅读全文
posted @ 2020-03-02 14:02 天子笑!分你一坛
阅读(156)
评论(0)
推荐(0)
编辑
公告