C - Playing With Stones Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 5059DescriptionYou and your frien...
分类:
其他好文 时间:
2015-03-04 14:20:13
阅读次数:
169
题目链接:点击打开链接
题意:开始有一个区间[0,1]
每次操作在中间填i,然后选择坐半段或者右半段(给出选择的方案,然后从左到右输出填写的i)
(i=1 2 3···)
#include
char s[1000005];
void dfs(int x){
if(s[x] == 0)return ;
if(s[x] == 'l')
{
df...
分类:
其他好文 时间:
2015-03-01 23:52:41
阅读次数:
457
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1896题目意思:给出 n 块石头的初始位置和能到达的距离。对于第奇数次遇到的石头才抛掷,偶数次的就忽略。问最多能扔到多远。如果有多颗石头在一个位置,距离小的那个标记为先遇到的。 所以先解说一下第二个测试....
分类:
其他好文 时间:
2015-02-17 17:38:13
阅读次数:
172
第一个andriod小应用,对照着黑马视频14期电话拨号器写的,中间也遇到不少问题。MainActivity.javapackage com.stones.phone;import android.support.v7.app.ActionBarActivity;import android.sup...
分类:
其他好文 时间:
2015-02-15 17:54:48
阅读次数:
128
Blocks of Stones
Description
There are n blocks of stones in a line laying on the ground. Now you are to merge these blocks of stones together with the restriction that you can only merge the...
分类:
其他好文 时间:
2015-01-16 20:59:29
阅读次数:
148
DescriptionBob and Alice play a game, and Bob will play first.Here is the rule of the game:1) There are N stones at first;2) Bob and Alice take turns ...
分类:
其他好文 时间:
2015-01-13 01:25:33
阅读次数:
2234
Problem Description
There are a bunch of stones on the beach; Stone color is white or black. Little Sheep has a magic brush, she can change the color of a continuous stone, black to white, white to...
分类:
其他好文 时间:
2015-01-09 23:50:47
阅读次数:
468
??
Description
Long long ago, there lived two rabbits Tom and Jerry in the forest. On a sunny afternoon, they planned to play a game with some stones. There were n stones on the ground and the...
分类:
其他好文 时间:
2014-11-26 11:25:50
阅读次数:
194
Description
The funny stone game is coming. There are n piles of stones, numbered with
0, 1, 2,..., n - 1. Two persons pick stones in turn. In every turn, each person selects three piles of stones...
分类:
其他好文 时间:
2014-08-28 16:15:29
阅读次数:
523
DescriptionThere are N stones, which can be divided into some piles arbitrarily. Let the value of each division be equal to the product of the number ...
分类:
其他好文 时间:
2014-08-20 13:55:32
阅读次数:
245