原创 codeforces D. Exams
Vasiliy has an exam period which will continue for n days. He has to pass exams on m subjects. Subjects are numbered fr
原创 codeforces 768C - Jon Snow and his Favourite Number
Jon Snow now has to fight with White Walkers. He has n rangers, each of which has his own strength. Also Jon Snow has
原创 codeforces 733B - Parade
Very soon there will be a parade of victory over alien invaders in Berland. Unfortunately, all soldiers died in the war
原创 codeforce 386(div2) D. Green and Black Tea
Innokentiy likes tea very much and today he wants to drink exactly n cups of tea. He would be happy to drink more but
原创 HDU 1533Going Home(費用流)
Problem Description On a grid map there are n little men and n houses. In each unit time, every little man can move one
原创 codeforces C. Buns
Lavrenty, a baker, is going to make several buns with stuffings and sell them. Lavrenty has n grams of dough as well as
原创 codeforces 742B - Arpa’s obvious problem and Mehrdad’s terrible solution
B. Arpa’s obvious problem and Mehrdad’s terrible solution time limit per test 1 second memory limit per test 256 meg
原创 codeforce B. Bash Big Day
Bash has set out on a journey to become the greatest Pokemon master. To get his first Pokemon, he went to Professor Zul
原创 NYOJ 括號匹配(二)(區間dp)
描述 給你一個字符串,裏面只包含"(",")","[","]"四種符號,請問你需要至少添加多少個括號才能使這些括號匹配起來。 如: []是匹配的 ([])[]是匹配的 ((]是不匹配的 ([
原创 777D - Cloud of Hashtags
D. Cloud of Hashtags time limit per test 2 seconds memory limit per test 256 megabytes input standard input ou