# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
744136 | 2023-05-18T08:31:23 Z | salmon | Izvanzemaljci (COI21_izvanzemaljci) | C++14 | 1 ms | 212 KB |
#include <bits/stdc++.h> using namespace std; vector<pair<int,int>> v; vector<pair<int,int>> o; int N,K; int a,b; int st[400100]; int main(){ scanf(" %d",&N); scanf(" %d",&K); int smalla,smallb; int biga,bigb; for(int i = 0; i < N; i++){ v.push_back(make_pair(a,b)); o.push_back(make_pair(b,a)); } sort(v.begin(),v.end()); sort(o.begin(),o.end()); int l = max(1,max(v[v.size() - 1].first - v[0].first, o[o.size() - 1].first - o[0].second)); printf("%d %d %d",smalla,smallb,l); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |