/* -*- coding: utf-8 -*- * * 522.cc: No.522 Make Test Cases(テストケースを作る) - yukicoder */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { int n; cin >> n; for (int a = 1; a < n; a++) for (int b = a; b < n; b++) { int c = n - (a + b); if (c >= b) printf("%d %d %d\n", a, b, c); } return 0; }