Submission #1053468

#TimeUsernameProblemLanguageResultExecution timeMemory
1053468beaconmcText editor (CEOI24_editor)C++14
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> typedef long long ll; #define FOR(i,x,y) for(ll i=x; i<y; i++) #define FORNEG(i,x,y) for(ll i=x; i>y; i--) using namespace std; const ll INF = 1000000000000000; int main(){ ll n; cin >> n; vector<ll> arr(n); ll a,b; ll x,y; cin >> a >> b >> x >> y; FOR(i,0,n) cin >> arr[i]; ll ans = INF; ans = min(ans, abs(a-x) + abs(b-y)); cout << ans << endl; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...