Submission #291862

#TimeUsernameProblemLanguageResultExecution timeMemory
291862penguinhackerKonstrukcija (COCI20_konstrukcija)C++17
30 / 110
1 ms512 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array void print(int i, int j) { cout << i << " " << j << "\n"; } int main() { ios::sync_with_stdio(0); cin.tie(0); ll k; cin >> k; if (k>=0) { assert(k<=500); print(k+3, 2*(k+1)); for (int i=2; i<=k+2; ++i) { print(1, i); print(i, k+3); } } else { k=-k; assert(k<=300); print(k+5, 3*(k+1)+2); for (int i=2; i<=k+2; ++i) { print(1, i); print(i, k+3); print(i, k+4); } print(k+3, k+5); print(k+4, k+5); } 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...