#include "triangles.h"

using namespace std;

// n == 4
vector<vector<int>> solve(int n) {
	vector<Triangle> trs = {{0, 1, 2}, {0, 1, 3}, {0, 2, 3}, {1, 2, 3}};
	int mx = 0;
	for (int i = 1; i < trs.size(); ++i) {
		int c = compare({trs[i]}, {trs[mx]});
		if (c == 1) {
			mx = i;
		}
	}
	int i = trs[mx].i;
	int j = trs[mx].j;
	int k = trs[mx].k;
	int l = 0 + 1 + 2 + 3 - i - j - k;
	vector<vector<int>> ans = {
		{l, i, j},	
		{l, j, k},	
		{l, i, k},	
	};
    return ans;
}
