摘要:
All cities of Lineland are located on the Ox coordinate axis. Thus, each city is associated with its position xi — a coordinate on the Ox axis. No two 阅读全文
摘要:
n个人,已知每个人体重。独木舟承重固定,每只独木舟最多坐两个人,可以坐一个人或者两个人。显然要求总重量不超过独木舟承重,假设每个人体重也不超过独木舟承重,问最少需要几只独木舟? n个人,已知每个人体重。独木舟承重固定,每只独木舟最多坐两个人,可以坐一个人或者两个人。显然要求总重量不超过独木舟承重,假 阅读全文
摘要:
A and B are preparing themselves for programming contests. B loves to debug his code. But before he runs the solution and starts debugging, he has to 阅读全文
摘要:
The well-known Fibonacci sequence is defined as following: F(0) = F(1) = 1 F(n) = F(n − 1) + F(n − 2) ∀n ≥ 2 Here we regard n as the index of the Fibo 阅读全文
摘要:
Recently your team noticed that the computer you use to practice for programming contests is not good enough anymore. Therefore, you decide to buy a n 阅读全文