04 2019 档案
摘要:Problem Statement There is an empty array. The following N operations will be performed to insert integers into the array. In the i-th operation (1≤i≤
阅读全文
摘要:Year 2118. Androids are in mass production for decades now, and they do all the work for humans. But androids have to go to school to be able to solve
阅读全文
摘要:There is an array with n elements a1, a2, ..., an and the number x. In one operation you can select some i (1 ≤ i ≤ n) and replace element ai with ai
阅读全文
摘要:The i’th Fibonacci number f(i) is recursively defined in the following way: • f(0) = 0 and f(1) = 1 • f(i + 2) = f(i + 1) + f(i) for every i ≥ 0 Your
阅读全文
摘要:Problem Description Kayaking is playing a puzzle game containing n different blocks. He marks the blocks with integers from 1 to n, which show the blo
阅读全文
摘要:题目链接 :http://poj.org/problem?id=3268 Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow
阅读全文
摘要:题目链接 : http://poj.org/problem?id=2253; 思路:这个题主要是理解了意思就行,题目意思是有两只青蛙和若干块石头,现在已知这些东西的坐标,两只青蛙A坐标和青蛙B坐标是第一个和第二个坐标,现在A青蛙想要到B青蛙那里去,并且A青蛙可以借助任意石头的跳跃,而从A到B有若干通
阅读全文
摘要:题目链接 https://cn.vjudge.net/problem/17712/origin Andrew is working as system administrator and is planning to establish a new network in his company. T
阅读全文