Problem Description
A weird clock marked from 0 to 59 has only a minute hand. It won’t move until a special coin is thrown into its box. There are different kinds of coins as your options. However onc...
分类:
其他好文 时间:
2016-04-11 01:56:24
阅读次数:
159
Problem Description
Given a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.ExampleFor n = 24, o = 3 and p = 3.TaskWrite a program which for each data set:rea...
分类:
其他好文 时间:
2016-04-10 15:01:21
阅读次数:
197
Problem Description
Given a positive integer n, find the positions of all 1’s in its binary representation. The position of the least significant bit is 0.ExampleThe positions of 1’s in the binary rep...
分类:
其他好文 时间:
2016-04-10 14:57:38
阅读次数:
123
Problem Description
Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,… as shown in the figure. For example, 1, 2, and 3 has been written at points (1,1), (2,0),...
分类:
其他好文 时间:
2016-04-10 14:54:58
阅读次数:
229
Problem Description
The Really Neato Calculator Company, Inc. has recently hired your team to help design their Super Neato Model I calculator. As a computer scientist you suggested to the company tha...
分类:
其他好文 时间:
2016-04-10 14:51:48
阅读次数:
153
Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , s ...
分类:
其他好文 时间:
2016-04-03 08:59:31
阅读次数:
188
1. 题目描述对于给定的$a, n, mod, a \in [2,11], n \in [0, 10^9], mod \in [1, 10^9]$求出在$[1, a^n]$内的所有$a$进制下的数并且不含重复数字。2. 基本思路这题比赛的时候,没人做出来,但是基本思路大家都有。显然可以直接将$n$改 ...
分类:
其他好文 时间:
2016-04-02 22:59:46
阅读次数:
632
http://acm.hdu.edu.cn/showproblem.php?pid=5233 外面有很多树,每棵树顶上有一只鸟,一个数组按从近到远的顺序列出这些树的高度(也就是鸟的高度) 猎人开始从不同高度打枪,子弹不能穿过鸟,也就是在同一高度上只有最近的鸟会被打下来。 给出一个数组表示猎人每次打枪 ...
分类:
其他好文 时间:
2016-04-02 12:04:48
阅读次数:
136
题目:hdoj 3157 Crazy Circuits 题意:如今要制造一个电路板。电路板上有 n 个电子元件,各个元件之间有单向的电流流向。然后有一个 + 。电流进入, -- 电流汇入,然后推断能不能让电路板工作,假设能的话求最小电流。 分析:有上下界网络流,求最小流 首先是推断能不可以让电路板工 ...
分类:
其他好文 时间:
2016-03-31 18:28:37
阅读次数:
160
最小点覆盖 Air Raid Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3002 Accepted Submission(s): 1951 ...
分类:
其他好文 时间:
2016-03-30 12:35:40
阅读次数:
197