Submission #682244

# Submission time Handle Problem Language Result Execution time Memory
682244 2023-01-16T05:05:39 Z vjudge1 Road Construction (JOI21_road_construction) C++17
0 / 100
6948 ms 2097156 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    ll n,k;
    cin >> n >> k;
    ll x[n+2];
    ll y[n+2];
    vector <ll> v;
    for(ll i=0;i<n;i++){
        cin >> x[i] >> y[i];
    }
    for(ll i=0;i<n;i++){
        for(ll j=i+1;j<n;j++){
            v.push_back(abs(x[i]-x[j])+abs(y[i]-y[j]));
        }
    }
    sort(v.begin(),v.end());
    cout <<v[0];
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 52 ms 4556 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1864 ms 2097152 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 6948 ms 2097156 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 6948 ms 2097156 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 52 ms 4556 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 52 ms 4556 KB Output isn't correct
2 Halted 0 ms 0 KB -