using System; using System.Collections.Generic; using System.Linq; class P { static int[] w; static bool dfs(int i, int sum, int goal) { bool ret = false; if (goal == sum) { ret = true; } else if (goal w.Last()) { ans = dfs(n - 1, 0, sum) ? "possible" : "impossible"; } else { ans = "impossible"; } } else { ans = "impossible"; } Console.WriteLine(ans); } }