제출 #1113032

#제출 시각아이디문제언어결과실행 시간메모리
1113032EfeBabagilText editor (CEOI24_editor)C++14
0 / 100
1 ms336 KiB
using namespace std; #include <bits/stdc++.h> #define int long long int32_t main() { int n; int sx,sy,ex,ey; cin>>n; cin>>sy>>sx>>ey>>ex; vector<int> l(n); for(int i=0;i<n;i++) cin>>l[i]; int ans=0; ans+=min(min(abs(sx-ex),sx+l[0]+1-ex),l[0]+1-sx+ex); ans+=abs(sy-ey); cout<<ans; return 0; }
#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...