- 博客(4)
- 收藏
- 关注
原创 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
264
原创 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
原创 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
382
原创 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
531
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅