60312023-10-28 00:01:59xxxKönyvkupaccpp14Wrong answer 0/1003ms2968 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int ki[100000];

int main() {
	int n; cin >> n;
	int k = 1;
	while(n > 1) {
		int cnt = 0;
		for(int i = 1; i <= (n)/2; i++) {
			cout << 1 << " " << 0 << " " << k << "\n";
			cnt++;
		}
		ki[k] = cnt;
		k++;
		n -= n/2;
	}
	k--;

	for(int i = k; k >= 1; k--) {
		cout << ki[k] << " " << k << " " << 0 << "\n";
	}

}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1880 KiB
2Wrong answer3ms2076 KiB
subtask20/100
3Wrong answer3ms2288 KiB
4Wrong answer3ms2512 KiB
5Wrong answer3ms2620 KiB
6Wrong answer3ms2752 KiB
7Wrong answer3ms2844 KiB
8Wrong answer3ms2968 KiB