60342023-10-28 00:05:25xxxKönyvkupaccpp14Accepted 100/1003ms3156 KiB
// @check-accepted: examples no-limits
#include <iostream>

static void move(int amount, int from, int to) {
    std::cout << amount << ' ' << from << ' ' << to << '\n';
}

int main() {
    int n;
    std::cin >> n;

    for (int i = 0; i < (n + 1) / 2; ++i) {
        move(1, 0, 1);
    }
    move(n / 2, 0, 1);
	for (int i = 0; i < n / 2; ++i) {
		move(1, 1, 0);
	}
    move(n / 2, 0, 1);
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1876 KiB
2Accepted3ms2116 KiB
subtask2100/100
3Accepted3ms2364 KiB
4Accepted3ms2576 KiB
5Accepted3ms2792 KiB
6Accepted3ms2944 KiB
7Accepted3ms3024 KiB
8Accepted3ms3156 KiB