摘要:
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the r 阅读全文
摘要:
给定一棵二叉树的中序遍历和前序遍历,请你先将树做个镜面反转,再输出反转后的层序遍历的序列。所谓镜面反转,是指将所有非叶结点的左右孩子对换。这里假设键值都是互不相等的正整数。 输入格式: 输入第一行给出一个正整数N(#include#include#include#include#include#include#include#include#include#include#include#defi... 阅读全文
摘要:
Problem B: Power Eggs Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 54 Solved: 23[Submit][Status][Web Board] Description Benedict bought K identical p 阅读全文
摘要:
Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split into Computer College and Software College in 2002.The... 阅读全文
摘要:
Mixed Dimensions Onsite Round will host N contestants this year. Moath and Saif have been preparing the contest hall, Moath needs X minutes to set up a computer for the contest, while Saif needs Yminu... 阅读全文
摘要:
Problem Description There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervisor... 阅读全文
摘要:
Boredom can be good for creativity. Polish mathematician Stanislaw Ulam (1909-1984) discovered the eponymous Ulam spiral while listening to a “long and very boring paper”. He started by writing down t... 阅读全文
摘要:
As you might know, most computer networks are organized in a tree-like fashion, i.e. each computer is reachable by each other computer but only over one, unique path. The so-called Time to live (TTL) ... 阅读全文
摘要:
Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: “Let’s just use a very simple code: 阅读全文
摘要:
Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi 阅读全文