#include <iostream> using namespace std; int main() { int t, m, mon[3], kin[] = {1, 5, 10}, count = 0; ; bool can = false; cin >> t; for (int i = 0; i < t; i++) { can = false; count = 0; cin >> m >> mon[0] >> mon[1] >...