60332023-10-28 00:04:32xxxKönyvkupaccpp14Wrong answer 0/1003ms3012 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);
    std::cout << 1 << " " << 0 << " " << 1 << "\n";
    std::cout << 1 << " " << 1 << " " << 0 << "\n";
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1872 KiB
2Wrong answer3ms2128 KiB
subtask20/100
3Wrong answer3ms2336 KiB
4Wrong answer3ms2584 KiB
5Wrong answer3ms2708 KiB
6Wrong answer3ms2788 KiB
7Wrong answer3ms2928 KiB
8Wrong answer3ms3012 KiB