![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题
初学算法的弱鸡
人生苦短,及时行乐
zstu-mile.github.io
展开
-
D - Bear and Five Cards
A little bear Limak plays a game. He has five cards. There is one number written on each card. Each number is a positive integer.Limak can discard (throw out) some cards. His goal is to minimize the...原创 2018-11-22 18:22:15 · 144 阅读 · 0 评论 -
O - Perfect Permutation
A permutation is a sequence of integers p1, p2, ..., pn, consisting of n distinct positive integers, each of them doesn't exceed n. Let's denote the i-th element of permutation p as pi. We'll call num...原创 2018-11-26 00:34:30 · 196 阅读 · 0 评论 -
P - Kyoya and Photobooks
Kyoya Ootori is selling photobooks of the Ouran High School Host Club. He has 26 photos, labeled "a" to "z", and he has compiled them into a photo booklet with some photos in some order (possibly with...原创 2018-11-26 00:37:04 · 175 阅读 · 0 评论 -
K - Pasha and Stick
Pasha has a wooden stick of some positive integer length n. He wants to perform exactly three cuts to get four parts of the stick. Each part must have some positive integer length and the sum of these...原创 2018-11-24 22:43:04 · 165 阅读 · 0 评论 -
L - Mike and palindrome
Mike has a string s consisting of only lowercase English letters. He wants to change exactly one character from the string so that the resulting one is a palindrome.A palindrome is a string that rea...原创 2018-11-25 13:15:00 · 208 阅读 · 0 评论 -
M - Find Amir
A few years ago Sajjad left his school and register to another one due to security reasons. Now he wishes to find Amir, one of his schoolmates and good friends.There are n schools numerated from 1 t...原创 2018-11-25 13:37:25 · 156 阅读 · 0 评论 -
R - Bear and Finding Criminals
There are n cities in Bearland, numbered 1 through n. Cities are arranged in one long row. The distance between cities i and j is equal to |i - j|.Limak is a police officer. He lives in a city a. Hi...原创 2018-11-26 17:19:05 · 170 阅读 · 0 评论 -
Problem D: 检索大写字母
Problem D: 检索大写字母Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 4902 Solved: 2755Description输入一行字符串,按字符串各字母出现次序输出字符串中所有出现过的大写英文字母(不能重复输出相同字母)Input输入一行字符串。Output输出字符串中所有的大写字母Sample InputFONTN...原创 2018-11-28 13:29:32 · 1427 阅读 · 2 评论 -
Problem B: Integer Inquiry
Problem B: Integer InquiryTime Limit: 1 Sec Memory Limit: 64 MBSubmit: 1553 Solved: 368DescriptionOne of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration o...原创 2018-12-12 16:43:28 · 257 阅读 · 0 评论