摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002题目意思:就是大整数加法。 两年几前做的,纯粹是整理下来的。 1 #include 2 #include 3 4 #define max 1010 5 char a[max], b[ma... 阅读全文
posted @ 2015-01-02 21:38 windysai 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=2389题目意思:就是大整数乘法。 题目中说每个整数不超过 40 位,是错的!!!要开大点,这里我开到100. 其实大整数乘法还是第一次写 = =.......大整数加法写得比较多。百练也有一条是大整数乘法,链接如下:http://b... 阅读全文
posted @ 2015-01-02 21:33 windysai 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1014题目意思:给出 STEP 和 MOD,然后根据这个公式:seed(x+1) = [seed(x) + STEP] % MOD,问是否在一个周期里可以产生 0 ~ mod-1 的数。可以的话输出 "G... 阅读全文
posted @ 2015-01-02 16:30 windysai 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=1102题目意思:就是根据给出的格式 s 和 数字 n,输出数值 n 的 LCD 显示。数值 n 的每个数字要占据 s + 2 列 和 2s + 3 行。数字和数字之间要有一个空格。数值与数值之间有一个空行。 首先对于LCD 的 7 个... 阅读全文
posted @ 2015-01-02 00:02 windysai 阅读(461) 评论(0) 推荐(0) 编辑