Submission #240844

#TimeUsernameProblemLanguageResultExecution timeMemory
240844NONAMEPick (COI18_pick)C++14
5 / 100
5 ms384 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; void print(int _x, int _y) { cout << _x << " " << _y << "\n"; } int a, b, c, d; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> a >> b >> c >> d; if (c == d && c == 0) { int x = 0, y = 0; print(x, y); for (int i = 0; i < a / 2; ++i) { --x; print(x, y); } for (int i = 0; i < b / 2; ++i) { ++y; print(x, y); } for (int i = 0; i < a / 2; ++i) { ++x; print(x, y); } for (int i = 0; i < b / 2 - 1; ++i) { --y; print(x, y); } return 0; } cout << "-1"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...