6166 | 2023-11-04 17:29:11 | zsombor | Könyvkupac | cpp17 | Wrong answer 0/100 | 3ms | 3060 KiB |
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector <int> v(1);
cin >> v[0];
while (v[0]) {
v.push_back(0);
while (v[0] > v.back()) {
cout << "0 " << v.size() - 1 << " 1\n";
v[0]--;
v.back()++;
}
}
for (int i = 1; i < v.size(); i++) cout << i << " 0 " << v[i] << "\n";
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1812 KiB | ||||
2 | Wrong answer | 3ms | 2004 KiB | ||||
subtask2 | 0/100 | ||||||
3 | Wrong answer | 3ms | 2216 KiB | ||||
4 | Wrong answer | 3ms | 2424 KiB | ||||
5 | Wrong answer | 3ms | 2636 KiB | ||||
6 | Wrong answer | 3ms | 2724 KiB | ||||
7 | Wrong answer | 3ms | 2852 KiB | ||||
8 | Wrong answer | 3ms | 3060 KiB |