6169 | 2023-11-04 19:31:11 | zsombor | Könyvkupac | cpp17 | Accepted 100/100 | 3ms | 3392 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";
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 2ms | 2120 KiB | ||||
subtask2 | 100/100 | ||||||
3 | Accepted | 3ms | 2332 KiB | ||||
4 | Accepted | 3ms | 2544 KiB | ||||
5 | Accepted | 3ms | 2784 KiB | ||||
6 | Accepted | 3ms | 2992 KiB | ||||
7 | Accepted | 3ms | 3160 KiB | ||||
8 | Accepted | 3ms | 3392 KiB |