链接:click here~~
题意:
描述
Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now.
What we are discussing is a simple edition...
分类:
其他好文 时间:
2015-03-20 23:52:07
阅读次数:
452
比大小时间限制:3000ms | 内存限制:65535KB难度:2描述给你两个很大的数,你能不能判断出他们两个数的大小呢?比如123456789123456789要大于-123456输入每组测试数据占一行,输入两个不超过1000位的10进制整数a,b数据保证输入的a,b没有前缀的0。如果输入0 0表...
分类:
其他好文 时间:
2015-03-20 20:11:02
阅读次数:
175
cigarettes
时间限制:3000 ms | 内存限制:65535 KB
难度:2
描述
Tom has many cigarettes. We hypothesized that he has n cigarettes and smokes them
one by one keeping all the butts. Out of k > 1 butts he ca...
分类:
其他好文 时间:
2015-03-19 22:14:10
阅读次数:
132
Coin Test
时间限制:3000 ms | 内存限制:65535 KB
难度:1
描述
As is known to all,if you throw a coin up and let it droped on the desk there are usually three results. Yes,just believe what I say ~it can be...
分类:
其他好文 时间:
2015-03-19 22:12:27
阅读次数:
111
汉诺塔(三)
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述
在印度,有这么一个古老的传说:在世界中心贝拿勒斯(在印度北部)的圣庙里,一块黄铜板上插着三根宝石针。印度教的主神梵天在创造世界的时候,在其中一根针上从下到上地穿好了由大到小的64片金片,这就是所谓的汉诺塔。不论白天黑夜,总有一个僧侣在按照下面的法则移动这些金片:一次只移动一片...
分类:
其他好文 时间:
2015-03-18 20:33:45
阅读次数:
176
24 Point game
时间限制:3000 ms | 内存限制:65535 KB
难度:5
描述
There is a game which is called 24 Point game.
In this game , you will be given some numbers. Your task is to find an expressi...
分类:
其他好文 时间:
2015-03-18 20:33:13
阅读次数:
184
求次数
时间限制:1000 ms | 内存限制:65535 KB
难度:2
描述
题意很简单,给一个数n 以及一个字符串str,区间【i,i+n-1】 为一个新的字符串,i 属于【0,strlen(str)】如果新的字符串出现过ans++,例如:acmacm n=3,那么 子串为acm cma mac acm ,只有acm出现过
求ans;
输入...
分类:
其他好文 时间:
2015-03-18 20:32:23
阅读次数:
121
表达式求值时间限制:3000ms | 内存限制:65535KB难度:3描述Dr.Kong设计的机器人卡多掌握了加减法运算以后,最近又学会了一些简单的函数求值,比如,它知道函数min(20,23)的值是20,add(10,98)的值是108等等。经过训练,Dr.Kong设计的机器人卡多甚至会计算一种嵌...
分类:
其他好文 时间:
2015-03-18 15:29:09
阅读次数:
195
本题的误区是用位运算法,位运算法基数太大暴力枚举肯定超时。。。#include using namespace std;int Count(int n){int ans = 0;while(n){ans += n & 1;// n 与 1,判断第一位是0还是1 n >>= 1;// 向右移1位 ,相...
分类:
其他好文 时间:
2015-03-18 01:02:03
阅读次数:
191
小明的存钱计划
时间限制:3000 ms | 内存限制:65535 KB
难度:2
描述
小明的零花钱一直都是自己管理。每个月的月初妈妈给小明300元钱,小明会预算这个月的花销,并且总能做到实际花销和预算的相同。
为了让小明学习如何储蓄,妈妈提出,小明可以随时把整百的钱存在她那里,到了年末她会加上20%还给小明。因此小明制定了一个储蓄计划:每个月的月初,在得...
分类:
其他好文 时间:
2015-03-17 18:05:52
阅读次数:
149