摘要:
骑士的移动题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=83498#problem/E题目:DescriptionA friend of you is doing research on theTraveling Knight ... 阅读全文
摘要:
队列训练题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=83498#problem/C 题目:Description某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二... 阅读全文
摘要:
二叉树的遍历题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=83498#problem/D 题意: 输入一颗二叉树的先序遍历和中序遍历序列,输出后序遍历序。样例:Sample InputDBACEGF ABCDEFGBCAD ... 阅读全文
摘要:
Soldier and Cards题目:DescriptionTwo bored soldiers are playing card war. Their card deck consists of exactlyncards, numbered from1ton,all values are di... 阅读全文
摘要:
题目:You are given a string consisting of parentheses()and[]. A string of this type is said to becorrect:(a)if it is the empty string(b)if A and B are c... 阅读全文
摘要:
Ohana Cleans UpDescriptionOhana Matsumae is trying to clean a room, which is divided up into annbyngrid of squares. Each square is initially either cl... 阅读全文
摘要:
Missing number题目:DescriptionThere is a permutation without two numbers in it, and now you know what numbers the permutation has. Please find the two n... 阅读全文
摘要:
Number SequenceA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to ca... 阅读全文
摘要:
Big Chocolate题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=19127Big ChocolateMohammad has recently visitedSwitzerland. As he lov... 阅读全文
摘要:
Soldier and Bananas题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=173141题意:给出第一个香蕉的价钱k,后买的第i个香蕉所需要的价钱就是i*k;给出手上所有的钱,求出如果要买w个香蕉还少多... 阅读全文