摘要: 描述 给你n根火柴棍,你可以拼出多少个形如“A+B=C”的等式?等式中的A、B、C是用火柴棍拼出的整数(若该数非零,则最高位不能是0)。用火柴棍拼数字0-9的拼法如图所示: 注意: 1. 加号与等号各自需要两根火柴棍 2. 如果A≠B,则A+B=C与B+A=C视为不同的等式(A、B、C>=0) 3. 阅读全文
posted @ 2018-05-30 15:29 极限之旅 阅读(294) 评论(0) 推荐(0) 编辑
摘要: Petr stands in line of n people, but he doesn't know exactly which position he occupies. He can say that there are no less than a people standing in f 阅读全文
posted @ 2018-05-26 19:59 极限之旅 阅读(169) 评论(0) 推荐(0) 编辑
摘要: You are given a broken clock. You know, that it is supposed to show time in 12- or 24-hours HH:MM format. In 12-hours format hours change from 1 to 12 阅读全文
posted @ 2018-05-26 19:56 极限之旅 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 描述 Jim is fond of reading books, and he has so many books that sometimes it's hard for him to manage them. So he is asking for your help to solve this 阅读全文
posted @ 2018-05-06 22:11 极限之旅 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 描述 A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = <x1, x2, ..., xm> another 阅读全文
posted @ 2018-05-06 22:00 极限之旅 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 描述 创建一个循环队列,队列元素个数为4。能够实现队列的初始化、入队列、出队列、求队列长度等操作。 循环队列数据类型定义如下: typedef struct{ int data[Max]; int front; int rear;}SqQueue; 部分代码已经给出,请补充完整,提交时请勿包含已经给 阅读全文
posted @ 2018-04-22 23:43 极限之旅 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 描述 创建一个顺序栈(静态),栈大小为5。能够完成栈的初始化、入栈、出栈、获取栈顶元素、销毁栈等操作。 顺序栈类型定义如下: typedef struct { int data[Max]; int top; }SqStack; 部分代码已经给出,请补充完整,提交时请勿包含已经给出的代码。 int m 阅读全文
posted @ 2018-04-22 21:40 极限之旅 阅读(923) 评论(0) 推荐(0) 编辑
摘要: 题目描述 不愤不启不悱不发,王萌萌为了能够成功上研,开始刻苦背GRE单词,但是由于她过于刻苦,在背会英语单词的同时,把中文读音忘了。于是王萌萌又开始复习起中文发音,她先从数字开始复习起。。。 题目很简单,王萌萌给出在[0, 10]范围内的整数的英文单词,你教她中文发音。 输入描述: 第一行输入一个T 阅读全文
posted @ 2018-04-22 18:12 极限之旅 阅读(289) 评论(0) 推荐(0) 编辑
摘要: One day Dima and Alex had an argument about the price and quality of laptops. Dima thinks that the more expensive a laptop is, the better it is. Alex 阅读全文
posted @ 2018-04-21 17:29 极限之旅 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 描述 使用STL中的multimap记录用户的所有电话号码,yuyu想查询用户有多少个电话号码,crq则想查询时输出所有的号码。 部分代码已经给出,请补充完整,提交时请勿包含已经给出的代码。 int main() { multimap<string, string> sm; string name, 阅读全文
posted @ 2018-04-20 23:38 极限之旅 阅读(1869) 评论(0) 推荐(0) 编辑