摘要:
Problem Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or... 阅读全文
摘要:
Problem Description Speakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有要准备的材料,于是,便需要去申请学校了。要申请国外的任何大学,你都要交纳一定的申请费用,这可是很惊人的。Speakless没有多少钱,总共只攒了n万美元。他将在m个学校中选择若... 阅读全文
摘要:
Problem Description As is known, Ackermann function plays an important role in the sphere of theoretical computer science. However, in the other ... 阅读全文
摘要:
Problem Description An n x n game board is populated with integers, one nonnegative integer per square. The goal is to travel along any legitimat... 阅读全文
摘要:
Problem Description A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = an... 阅读全文
摘要:
description Cc is a lovely monkey. It likes to play the game "catching plates". The game is as follows. There are n pegs in a line n... 阅读全文
摘要:
Problem Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Inpu... 阅读全文
摘要:
description 给定字符串,求它的回文子序列个数。回文子序列反转字符顺序后仍然与原序列相同。 例如字符串aba中,回文子序列为"a", "a", "aa", "b", "aba",共5个。内容相同位置不同的子序列算不同的子序列。 input 第一行... 阅读全文
摘要:
Problem Description A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a build... 阅读全文
摘要:
Problem Description FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location i... 阅读全文