摘要: Necklace HDU - 3874 Mery has a beautiful necklace. The necklace is made up of N magic balls. Each ball has a beautiful value. The balls with the same 阅读全文
posted @ 2019-05-09 18:11 当然是斗笠呀 阅读(212) 评论(0) 推荐(0)
摘要: Problem for Nazar Nazar, a student of the scientific lyceum of the Kingdom of Kremland, is known for his outstanding mathematical abilities. Today a m 阅读全文
posted @ 2019-05-09 15:01 当然是斗笠呀 阅读(574) 评论(0) 推荐(0)
摘要: Align AtCoder - 4371 Problem Statement You are given N integers; the i-th of them is Ai. Find the maximum possible sum of the absolute differences bet 阅读全文
posted @ 2019-05-07 18:34 当然是斗笠呀 阅读(241) 评论(0) 推荐(0)
摘要: B. Long Number time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Long Number time limit 阅读全文
posted @ 2019-05-07 17:21 当然是斗笠呀 阅读(397) 评论(0) 推荐(0)
摘要: 给定一个全部由小写英文字母组成的字符串,允许你至多删掉其中 3 个字符,结果可能有多少种不同的字符串? 输入格式: 输入在一行中给出全部由小写英文字母组成的、长度在区间 [4, 1] 内的字符串。 输出格式: 在一行中输出至多删掉其中 3 个字符后不同字符串的个数。 输入样例: 输出样例: 提示: 阅读全文
posted @ 2019-03-26 20:17 当然是斗笠呀 阅读(472) 评论(0) 推荐(0)
摘要: Magazine Ad The main city magazine offers its readers an opportunity to publish their ads. The format of the ad should be like this: There are space-s 阅读全文
posted @ 2019-02-27 20:56 当然是斗笠呀 阅读(333) 评论(0) 推荐(0)