欢迎访问我的个人网站==》 jiashubing.cn
摘要: ClockTime Limit:2 Seconds Memory Limit:65536 KBYou are given a standard 12-hour clock with analog display, an hour hand and a minute hand. How many times does the minute hand pass the hour hand in a given time interval?Sample Input12 50 1 2 3 8 3 20 2 45 11 011 0 3 20 1 2 12 50 3 20 3 8Sam... 阅读全文
posted @ 2014-03-12 23:19 贾树丙 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Divide and Count题目大意:给定箱子的数量和每个箱子的容量,在每个箱子里都装满对应容量的宝石,每颗宝石都是独一无二的,求一共有多少种放置方式。但是如果两个箱子的容量相同,则认为是 同一种箱子Sample input:23 331 2 3Sample output:1060分析:这是练习赛的时候处在HUST上的题目,当时感觉代码完全对了,却坑了半天,看了题解才发现,是最后除以相同的箱子的时候,是除以它的数量的阶乘,本来是这么想的,却先把它们给乘起来了,样例只是碰巧对而已。也用不到64位整数。代码如下: 1 #include 2 # include 3 # include 4 u.. 阅读全文
posted @ 2014-03-12 23:09 贾树丙 阅读(430) 评论(0) 推荐(0) 编辑