Submission #1068400

#TimeUsernameProblemLanguageResultExecution timeMemory
1068400vjudge1Text editor (CEOI24_editor)C++17
0 / 100
0 ms348 KiB
#include <bits/stdc++.h> #define div / #define ll long long #define fore(i, l, r) for(int i=int(l); i<int(r); i++) #define sz(a) int((a).size()) using namespace std; const int INF = 1e9; const int MX = 5e5 + 23; const int MOD = 1000000007; const int MAX_N = 5e5+23; const int N = 1e6; void solve() { int n; cin >> n; int sl,sc,el,ec; cin >> sl >> sc >> el >> ec; int l[n]; fore(i,0,n) cin >> l[i]; cout << abs(sl-el) + abs(el-ec) << endl; } int main() { ios::sync_with_stdio(false); int t=1; 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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...