摘要:
精 挑 细 选描述小王是公司的仓库管理员,一天,他接到了这样一个任务:从仓库中找出一根钢管。这听起来不算什么,但是这根钢管的要求可真是让他犯难了,要求如下: 1、这根钢管一定要是仓库中最长的; 2、这根钢管一定要是最长的钢管中最细的; 3、这根钢管一定要是符合前两条的钢管中编码最大的(每根钢管都有一... 阅读全文
posted @ 2014-11-02 17:02
-渔人码头-
阅读(385)
评论(0)
推荐(0)
摘要:
数数小木块描述在墙角堆放着一堆完全相同的正方体小木块,如下图所示: 因为木块堆得实在是太有规律了,你只要知道它的层数就可以计算所有木块的数量了。现在请你写个程序 给你任一堆木块的层数,求出这堆木块的数量.输入第一行是一个整数N(N#include using namespace std;int ma... 阅读全文
posted @ 2014-11-02 17:01
-渔人码头-
阅读(410)
评论(0)
推荐(0)
摘要:
#includeusing namespace std;int main(){ int n; char m[20]; cin>>n; while(n--) { cin>>m; cout<<m<<endl; }return 0;} ... 阅读全文
posted @ 2014-11-02 17:00
-渔人码头-
阅读(265)
评论(0)
推荐(0)
摘要:
01串描述ACM的zyc在研究01串,他知道某一01串的长度,但他想知道不含有“11”子串的这种长度的01串共有多少个,他希望你能帮帮他。注:01串的长度为2时,有3种:00,01,10。输入第一行有一个整数n(0#include #include #include #include #includ... 阅读全文
posted @ 2014-11-02 16:59
-渔人码头-
阅读(351)
评论(0)
推荐(0)
摘要:
16进制的简单运算描述现在给你一个16进制的加减法的表达式,要求用8进制输出表达式的结果。输入第一行输入一个正整数T(0int main(){int m,n,k;scanf("%d",&n);while(n--){scanf("%x%x",&m,&k);printf("%o\n",m+k);}ret... 阅读全文
posted @ 2014-11-02 16:58
-渔人码头-
阅读(241)
评论(0)
推荐(0)
摘要:
交换输出描述输入n(n#include using namespace std;int main(){int n,m[100];while(cin>>n && !cin.eof()){ int min = 0,t =0; for(int i=0;i>m[i]; for(int i=... 阅读全文
posted @ 2014-11-02 16:57
-渔人码头-
阅读(247)
评论(0)
推荐(0)
摘要:
字母统计描述现在给你一个由小写字母组成字符串,要你找出字符串中出现次数最多的字母,如果出现次数最多字母有多个那么输出最小的那个。输入第一行输入一个正整数T(0#include using namespace std;int main(){ int n; int max,t; cha... 阅读全文
posted @ 2014-11-02 16:56
-渔人码头-
阅读(345)
评论(0)
推荐(0)
摘要:
Tree描述Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letter... 阅读全文
posted @ 2014-11-02 16:55
-渔人码头-
阅读(315)
评论(0)
推荐(0)
摘要:
a letter and a number描述we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26; Give you a letter x and a number y , you should ... 阅读全文
posted @ 2014-11-02 16:54
-渔人码头-
阅读(321)
评论(0)
推荐(0)
摘要:
A problem is easy描述When Teddy was a child , he was always thinking about some simple math problems ,such as “What it’s 1 cup of water plus 1 pile of d... 阅读全文
posted @ 2014-11-02 16:53
-渔人码头-
阅读(289)
评论(0)
推荐(0)

浙公网安备 33010602011771号