• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
frankM
天下武功,唯快不破。
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  大数问题

 
LeetCode Add Binary
摘要:链接: https://oj.leetcode.com/problems/add-binary/大数加法.二进制class Solution{ public: string addBinary(string a,string b) { bool sign=false; string an... 阅读全文
posted @ 2014-11-18 19:06 frankM 阅读(122) 评论(0) 推荐(0)
NYOJ 759 你知道这个规律吗?
摘要:链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=759找了半天没找到什么规律....直接按大数除法做了 #include #include using namespace std;char num[100005];int main(){ int... 阅读全文
posted @ 2014-05-21 18:26 frankM 阅读(86) 评论(0) 推荐(0)
NYOJ 28 大数阶乘
摘要:链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=28大数问题。模拟手工运算,用一个变量储存进位:被乘数逐位乘以乘数。#include #include #include int ans[20000];char tem[5];int t; ... 阅读全文
posted @ 2014-05-08 16:15 frankM 阅读(135) 评论(0) 推荐(0)
ZJU 1272 Numerically Speaking
摘要:大数问题......根据先余为低位,后余为高位的基本思想,进行26->10进制的互相转换。注意如果输入为的10进制数为26的整数时,要先减一再求余,最后结果在加a..因为目标进制没有表示0的数Presentation Error 了好几次。。要看到这句话“and the corresponding ... 阅读全文
posted @ 2014-05-05 21:34 frankM 阅读(167) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3