#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n, t; cin >> n >> t; int limit = 1000000; vector a(n); for (int i=0; i> a.at(i); } //////////////// 出力変数定義 //////////////// string result = ""; //////////////////// 処理 //////////////////// set> s; for (int num : a) { if (s.empty()) { s.emplace("",num); continue; } set> next; set check; for (auto [str,i] : s) { if (check.find(i+num)==check.end()&&i+num