EricYang

Tech Spot of Eric

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页

2011年6月9日

摘要: ExponentiationTime Limit:500MSMemory Limit:10000KTotal Submissions:87049Accepted:20682DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems.Thi 阅读全文
posted @ 2011-06-09 15:28 Eric-Yang 阅读(216) 评论(0) 推荐(0) 编辑

2011年6月8日

摘要: Sequence MedianTime Limit:1000MSMemory Limit:65536KTotal Submissions:11487Accepted:3273DescriptionGiven a sequence of N nonnegative integers. Let's define the median of such sequence. If N is odd the median is the element with stands in the middle of the sequence after it is sorted. One may noti 阅读全文
posted @ 2011-06-08 18:08 Eric-Yang 阅读(305) 评论(0) 推荐(0) 编辑

摘要: 位操作Time Limit:1000MSMemory Limit:65536KTotal Submissions:6586Accepted:2532Description假设你工作在一个32位的机器上,你需要将某一个外设寄存器的第X位设置成0(最低位为第0位,最高位为第31位),将第Y位开始的连续三位设置成110(从高位到低位的顺序),而其他位保持不变。对给定的寄存器值R,及X,Y,编程计算更改后的寄存器值R。Input仅一行,包括R,X,Y,以逗号","分隔,R为16进制表示的32位整数,X,Y在0-31之间且Y>=3,(Y-X)的绝对值>=3,保证两次置位不 阅读全文
posted @ 2011-06-08 17:40 Eric-Yang 阅读(170) 评论(0) 推荐(0) 编辑

摘要: 时间日期格式转换Time Limit:1000MSMemory Limit:65536KTotal Submissions:5000Accepted:2296Description世界各地有多种格式来表示日期和时间。对于日期的常用格式,在中国常采用格式的是“年年年年/月月/日日”或写为英语缩略表示的”yyyy/mm/dd”,此次编程大赛的启动日期“2009/11/07”就是符合这种格式的一个日期,而北美所用的日期格式则为“月月/日日/年年年年”或”mm/dd/yyyy”,如将“2009/11/07”改成这种格式,对应的则是”11/07/2009”。对于时间的格式,则常有12小时制和24小时制的 阅读全文
posted @ 2011-06-08 17:10 Eric-Yang 阅读(320) 评论(0) 推荐(0) 编辑

摘要: JackpotTime Limit:1000MSMemory Limit:65536KTotal Submissions:3703Accepted:1212DescriptionBill has found the perfect way to make money playing the slot machines. After months of careful research, he has finally figured out the mechanics behind how the machines operate. Now he is ready to make profit 阅读全文
posted @ 2011-06-08 16:58 Eric-Yang 阅读(226) 评论(0) 推荐(0) 编辑

摘要: Card TrickTime Limit:1000MSMemory Limit:65536KTotal Submissions:2673Accepted:1957DescriptionThe magician shuffles a small pack of cards, holds it face down and performs the following procedure:The top card is moved to the bottom of the pack. The new top card is dealt face up onto the table. It is th 阅读全文
posted @ 2011-06-08 16:44 Eric-Yang 阅读(194) 评论(0) 推荐(0) 编辑

摘要: Relative RelativesTime Limit:1000MSMemory Limit:30000KTotal Submissions:2891Accepted:1251DescriptionToday is Ted's 100th birthday. A few weeks ago, you were selected by the family to contact all of Ted's descendants and organize a surprise party. To make this task easier, you created an age- 阅读全文
posted @ 2011-06-08 16:15 Eric-Yang 阅读(274) 评论(0) 推荐(0) 编辑

摘要: StuPIdTime Limit:3000MSMemory Limit:65536KTotal Submissions:5507Accepted:2839DescriptionBackgroundAt DUT, the Dreamland University of Technology, all students have personal id, numbers with six or seven digits. But they're not just any numbers. Only those that have a checksum with a zero as last 阅读全文
posted @ 2011-06-08 15:12 Eric-Yang 阅读(202) 评论(0) 推荐(0) 编辑

2011年6月2日

摘要: Primary ArithmeticTime Limit:1000MSMemory Limit:65536KTotal Submissions:7852Accepted:2962DescriptionChildren are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in which a 1 is carried from one digit position to be added to the ne 阅读全文
posted @ 2011-06-02 17:28 Eric-Yang 阅读(274) 评论(0) 推荐(0) 编辑

摘要: BullseyeTime Limit:1000MSMemory Limit:65536KTotal Submissions:4123Accepted:1927DescriptionA simple dartboard consists of a flat, circular piece of cork with concentric rings drawn on it. Darts are thrown at the board by players in an attempt to hit the center of the dartboard (the Bullseye). The reg 阅读全文
posted @ 2011-06-02 16:58 Eric-Yang 阅读(322) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页