[bzoj2818]Gcd 发表于 2015-11-07 | Description给定整数N,求1<=x,y<=N且Gcd(x,y)为素数的数对(x,y)有多少对. Input一个整数N Output如题 Sample Input4 Sample ... 阅读全文 »
[HDU1423] Greatest Common Increasing Subsequence 发表于 2015-11-06 | DescriptionYou are given two sequences of integer numbers. Write a program to determine their common ... 阅读全文 »
[poj 2762]Going from u to v or from v to u? 发表于 2015-11-06 | DescriptionIn order to make their sons brave, Jiajia and Wind take them to a big cave. The cave has ... 阅读全文 »
[OpenJudge 2405]Avoid The Lakes 发表于 2015-11-05 | 描述Farmer John’s farm was flooded in the most recent storm, a fact only aggravated by the information ... 阅读全文 »
[NOIP2015神奇五校模拟赛No.7]设置(settings) 发表于 2015-11-04 | 题目描述如题所示,这将是一个关于设置的问题。你需要通过对一个控制台进行设置,来得到不同的效果。这个控制台由n个控制元件组成,每个元件有m种设置,其中i号元件的第j种设置将会给整体带来a[i][j]的效 ... 阅读全文 »
[poj 2348]Euclid's Game 发表于 2015-11-03 | 描述Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subt ... 阅读全文 »
poj 2157 Maze 发表于 2015-11-02 | Time Limit: 2000MS Memory Limit: 65536KTotal Submissions: 3695 Accepted: 1153 Descript ... 阅读全文 »
BZOJ4300: 绝世好题 发表于 2015-11-01 | Description给定一个长度为n的数列ai,求ai的子序列bi的最长长度,满足bi&bi-1!=0(2<=i<=len)。 Input输入文件共2行。第一行包括一个整数n。第 ... 阅读全文 »
[codevs4438] YJQ Runs Upstairs #patina27大战玄学# 发表于 2015-11-01 | 题目本身是好题 题目描述 Description学校科技楼一共有N层,而神犇YJQ每天都在科技楼N楼的机房写代码。这天,他准备从科技楼1楼爬到N楼。有个M连接不同楼层的楼梯,爬每个楼梯需要一定的体力值 ... 阅读全文 »
[poj 2479]Maximum sum 发表于 2015-10-31 | DescriptionGiven a set of n integers: A={a1, a2,…, an}, we define a function d(A) as below:(图丢了)Your ... 阅读全文 »