题目回顾
inkforest
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
P1017 - 进制转换
题目:进制转换 题目来源:洛谷P1017 题目描述 将正整数N转换成进制R的数。其中比较棘手的情况是基数R是负数的情况,因为这时用一般的取模运算,得到的的数码范围是[(R+1),0]。但规定此时的数码依然是非负数。 例如:-16的-2进制表示可以作以下运算: −16=1∗(−2)5+1∗(−2)4 -16=1*(-2)^5+1*(-2)^4 −16=1∗(−2)5+1∗(−2)4 即-16的-2进...原创 2020-04-04 14:31:21 · 266 阅读 · 0 评论 -
POJ 2503 Babelfish
题目来自POJ 2503链接 题目 Input consists of up to 100,000 dictionary entries, followed by a blank line, followed by a message of up to 100,000 words. Each dictionary entry is a line containing an English wo...原创 2020-03-23 11:08:36 · 178 阅读 · 0 评论 -
ZOJ 1383 Binary Numbers 二进制数
突然有打算记录一下做过的题目,目前为止都是很简单的题,还请多多指教。 题目来自ZOJ 1383 链接 题目 Given a positive integer n, print out the positions of all 1’s in its binary representation. The position of the least significant bit is 0. Exam...原创 2020-03-12 19:50:19 · 385 阅读 · 0 评论 -
ACM入门-ZOJ 2812 Quicksum 快速求和
突然有打算记录一下做过的题目,目前为止都是很简单的题,还请多多指教。 题目来自ZOJ 2812 链接 A checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will als...原创 2020-03-12 19:40:55 · 534 阅读 · 0 评论
分享