Q674: Coin change

// Author: Bluefin
// Accepted after finding the algorithm ~~
#include<iostream>
#include<cstdlib>
using namespace std;