[PTC][201210][搜索] Princess's Marriage
Sample Input34 4 1 1 1 14 5 10 20 30 40 505 10 1 6 2 5 3 4 4 3 5 2Sample OutputCongratulationsNOCongratulations2#include <stdio.h>int used[105] = {}, len;int flag, m, n, w[105] = {};void dfs(int idx, int now, int st, int sum) { if(flag) r...