摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
描述 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 阅读全文
摘要:
描述 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 阅读全文
摘要:
描述 创建一个循环队列,队列元素个数为4。能够实现队列的初始化、入队列、出队列、求队列长度等操作。 循环队列数据类型定义如下: typedef struct{ int data[Max]; int front; int rear;}SqQueue; 部分代码已经给出,请补充完整,提交时请勿包含已经给 阅读全文
摘要:
描述 创建一个顺序栈(静态),栈大小为5。能够完成栈的初始化、入栈、出栈、获取栈顶元素、销毁栈等操作。 顺序栈类型定义如下: typedef struct { int data[Max]; int top; }SqStack; 部分代码已经给出,请补充完整,提交时请勿包含已经给出的代码。 int m 阅读全文
摘要:
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 阅读全文