제출 #845308

#제출 시각아이디문제언어결과실행 시간메모리
845308vjudge1Konstrukcija (COCI20_konstrukcija)C++17
0 / 110
0 ms600 KiB
#pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") #include <bits/stdc++.h> using namespace std; #define int long long #define ONLINE_JUDGE #ifndef ONLINE_JUDGE #define OPEN freopen(".in", "r", stdin); \ freopen(".out", "w", stdout); #else #define OPEN void(23); #endif void solve() { int k; cin >> k; if(k == 1) cout << 1 << " " << 0; else if(k == 0) { cout << 6 << " " << 6 << "\n"; cout << 1 << " " << 4 << "\n"; cout << 1 << " " << 5 << "\n"; cout << 4 << " " << 3 << "\n"; cout << 5 << " " << 3 << "\n"; cout << 3 << " " << 2 << "\n"; cout << 2 << " " << 6 << "\n"; } else { cout << -k +3 << " " << (-k +1) * 2 << "\n"; int cnt = 2; for(int i = 1; i <= -k +1; i++, cnt++) cout << 1 << " " << cnt << "\n" << cnt << " " << -k +3 << "\n"; } return; } int32_t main() { OPEN; ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int t = 1; //cin >> t; while(t--) { solve(); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...