61692023-11-04 19:31:11zsomborKönyvkupaccpp17Accepted 100/1003ms3392 KiB
#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    for (int i = 0; i < (n + 1) / 2; i++) cout << "1 0 1\n";
    cout << n / 2 << " 0 1\n";
    for (int i = 0; i < n / 2; i++) cout << "1 1 0\n";
    cout << n / 2 << " 0 1\n";
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1876 KiB
2Accepted2ms2120 KiB
subtask2100/100
3Accepted3ms2332 KiB
4Accepted3ms2544 KiB
5Accepted3ms2784 KiB
6Accepted3ms2992 KiB
7Accepted3ms3160 KiB
8Accepted3ms3392 KiB