摘要:
Description he only king stands on the standard chess board. You are given his position in format "cd", where c is the column from 'a' to 'h' and d is 阅读全文
摘要:
Description Katya studies in a fifth grade. Recently her class studied right triangles and the Pythagorean theorem. It appeared, that there are triple 阅读全文
摘要:
Description Masha wants to open her own bakery and bake muffins in one of the n cities numbered from 1 to n. There are m bidirectional roads, each of 阅读全文
摘要:
Description Small, but very brave, mouse Brain was not accepted to summer school of young villains. He was upset and decided to postpone his plans of 阅读全文
摘要:
Description Peter Parker wants to play a game with Dr. Octopus. The game is about cycles. Cycle is a sequence of vertices, such that first one is conn 阅读全文
摘要:
Description Dr. Bruce Banner hates his enemies (like others don't). As we all know, he can barely talk when he turns into the incredible Hulk. That's 阅读全文
摘要:
链接:http://acm.hdu.edu.cn/showproblem.php?pid=5806 题意:有多少个区间里的第 k 大的数不小于 m 解法:尺取法,首先我们用dp[i]保存到i的位置有多少大于m的数 l=1,r=1,r开始遍历,只要符合dp[l]-dp[r]==k就是sum+=(n-r 阅读全文
摘要:
Description Little Mishka is a great traveller and she visited many countries. After thinking about where to travel this time, she chose XXX — beautif 阅读全文