上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: Polycarp has nn coins, the value of the ii-th coin is aiai. It is guaranteed that all the values are integer powers of 22 (i.e. ai=2dai=2d for some no 阅读全文
posted @ 2018-07-29 16:40 Daybreaking 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in th 阅读全文
posted @ 2018-07-29 11:04 Daybreaking 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this 阅读全文
posted @ 2018-07-29 10:42 Daybreaking 阅读(132) 评论(0) 推荐(0) 编辑
摘要: The company "21st Century Fruits" has specialized in creating new sorts of fruits by transferring genes from one fruit into the genome of another one. 阅读全文
posted @ 2018-07-29 09:57 Daybreaking 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 用java写的大数基本操作,java要求的格式比较严谨。 1 import java.util.*; 2 import java.math.*; 3 public class Main { 4 public static void main(String args[]) { 5 Scanner ci 阅读全文
posted @ 2018-07-28 11:33 Daybreaking 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 给出两个字符串A B,求A与B的最长公共子序列(子序列不要求是连续的)。 比如两个串为: abcicba abdkscab ab是两个串的子序列,abc也是,abca也是,其中abca是这两个字符串最长的子序列。 Input 第1行:字符串A 第2行:字符串B (A,B的长度 <= 1000) Ou 阅读全文
posted @ 2018-07-28 11:24 Daybreaking 阅读(282) 评论(0) 推荐(0) 编辑
摘要: Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and 阅读全文
posted @ 2018-07-28 11:19 Daybreaking 阅读(131) 评论(0) 推荐(0) 编辑
摘要: The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could f 阅读全文
posted @ 2018-07-28 11:13 Daybreaking 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 一个正整数,如果它能被7整除,或者它的十进制表示法中某个位数上的数字为7,则称其为与7相关的数。求所有小于等于N的与7无关的正整数的平方和。 例如:N = 8,<= 8与7无关的数包括:1 2 3 4 5 6 8,平方和为:155。 Input第1行:一个数T,表示后面用作输入测试的数的数量。(1 阅读全文
posted @ 2018-07-27 09:22 Daybreaking 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 给出一个字符串,求该字符串的一个子串s,s包含A-Z中的全部字母,并且s是所有符合条件的子串中最短的,输出s的长度。如果给出的字符串中并不包括A-Z中的全部字母,则输出No Solution。 Input 第1行,1个字符串。字符串的长度 <= 100000。 Outpu t输出包含A-Z的最短子串 阅读全文
posted @ 2018-07-27 09:02 Daybreaking 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页