Skip to content

Instantly share code, notes, and snippets.

View balamark's full-sized avatar
🎯
Focusing

Mark balamark

🎯
Focusing
View GitHub Profile
@balamark
balamark / 10306.cpp
Last active August 29, 2015 14:16
variation of coin change DP.
#include <cstdio>
#include <numeric>
#include <algorithm>
#include <cstring>
using namespace std;
int T, m, S, S2;
int ctype[40][2];
int memo[300][300];
//smallest amount of e-coins needed
int way(int a, int b){