coke专题

Uva-10626 Buying Coke DP+记忆化搜索

状态: dp[a][b][c]表示1块的a个5快的b个10块的c个的投币数 #include <stdio.h>#include <string.h>#include <iostream>#include<functional>#include <queue>#include <string>#include <map>#include <algorithm>us