算法竞赛
我是赛赛
辣鸡大学生
展开
-
Easy Game
You are playing a two player game. Initially there areninteger numbers in an array and playerAandBget chance to take them alternatively. Each player can take one or more numbers from the left or ...原创 2019-12-04 17:07:34 · 213 阅读 · 0 评论 -
刷题记录——7月31——动态规划
悼念512汶川大地震遇难同胞――珍惜现在,感恩生活(hdu2191)完全背包,用f[i]表示花费i费用时,能获得的最多粮食数目,对于有k件的商品,我们吧一个商品看作k件完全相同的k件商品即可。#include<cstdio>#include<cstring>#include<algorithm>#include<iostream>...原创 2018-10-19 13:53:20 · 193 阅读 · 0 评论 -
LOOPS
Akemi Homura is a Mahou Shoujo (Puella Magi/Magical Girl). Homura wants to help her friend Madoka save the world. But because of the plot of the Boss Incubator, she is trapped in a labyrinth called L...原创 2018-11-02 00:36:17 · 145 阅读 · 0 评论 -
Maximum Absurdity
题目描述Reforms continue entering Berland. For example, during yesterday sitting the Berland Parliament approved as much as n laws (each law has been assigned a unique number from 1 to n). Today all the...原创 2018-11-02 00:45:57 · 169 阅读 · 0 评论 -
Coin Change (II)
In a strange shop there are n types of coins of value A1, A2 ... An. You have to find the number of ways you can make K using the coins. You can use any coin at most K times.For example, suppose the...原创 2018-11-02 01:02:33 · 126 阅读 · 0 评论 -
Who pat the head of itself?
Let me tell you a long long story. In BBS, if someone created a topic, then there would follow several user reply the topic and discuss it. As you know, the first one replied the topic we called it S...原创 2018-11-02 16:51:05 · 135 阅读 · 0 评论 -
K-Trees
Quite recently a creative student Lesha had a lecture on trees. After the lecture Lesha was inspired and came up with the tree of his own which he called a k-tree.A k-tree is an infinite rooted tree...原创 2018-11-02 17:22:33 · 273 阅读 · 0 评论