Submission #1044096

#TimeUsernameProblemLanguageResultExecution timeMemory
1044096vjudge1Pick (COI18_pick)C++17
10 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c, d; cin >> a >> b >> c >> d; if (a == 0 and b == 0){ vector<pair<int, int>> vec; int x = 0, y = 0; vec.push_back({0, 0}); for (int i = 0; i < c / 2; i ++){ x++, y++; vec.push_back({x, y}); } for (int i = 0; i < d / 2; i ++){ x--, y++; vec.push_back({x, y}); } for (int i = 0; i < c / 2; i ++){ x--, y--; vec.push_back({x, y}); } for (int i = 0; i < d / 2; i ++){ x++, y--; vec.push_back({x, y}); } vec.pop_back(); for (auto [x, y] : vec) cout << x << " " << y << endl; return 0; } if (c == 0 and d == 0){ vector<pair<int, int>> vec; int x = 0, y = 0; vec.push_back({0, 0}); for (int i = 0; i < a / 2; i ++){ x++; vec.push_back({x, y}); } for (int i = 0; i < b / 2; i ++){ y++; vec.push_back({x, y}); } for (int i = 0; i < a / 2; i ++){ x--; vec.push_back({x, y}); } for (int i = 0; i < b / 2; i ++){ y--; vec.push_back({x, y}); } vec.pop_back(); for (auto [x, y] : vec) cout << x << " " << y << endl; 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...