Submission #420871

#TimeUsernameProblemLanguageResultExecution timeMemory
420871MetalPowerIzvanzemaljci (COI21_izvanzemaljci)C++14
0 / 100
1 ms204 KiB
#include <bits/stdc++.h> using namespace std; int N, K; int main(){ ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); cin >> N >> K; if(K == 1){ int min_x = 1e9, max_x = 0, min_y = 1e9, max_y = 0; for(int i = 0; i < N; i++){ int x, y; cin >> x >> y; min_x = min(min_x, x); max_x = max(max_x, x); min_y = min(min_y, y); max_y = max(max_y, y); } cout << min_x << " " << min_y << " " << max(1, max(max_x - min_x, max_y - min_y)) << '\n'; }else{ cout << "AC" << '\n'; } }
#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...