Submission #967513

#TimeUsernameProblemLanguageResultExecution timeMemory
967513lanaskaricaPick (COI18_pick)C++14
5 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair <int, int> #define fi first #define se second int a, b, c, d; void ispisi(int x, int y) { cout << x << " " << y << "\n"; } void solve1() { int x = 0, y = 0; for (int i = 0; i < b / 2; i++) { ispisi(x, y); y++; } ispisi(x, y); x++; for (int i = 0; i < (b - 1) / 2; i++) { ispisi(x, y); y--; } for (int i = 0; i < (a - 1) / 2; i++) { ispisi(x, y); x++; } ispisi(x, y); y--; for (int i = 0; i < a / 2; i++) { ispisi(x, y); x--; } } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cin >> a >> b >> c >> d; if (c == 0 && d == 0) solve1(); //if (a == b == 0) solve2(); return 0; }
#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...