제출 #1290396

#제출 시각아이디문제언어결과실행 시간메모리
1290396JahonaliXSoccer (JOI17_soccer)C++20
5 / 100
1 ms576 KiB
#include <bits/stdc++.h> using namespace std; #define int long long constexpr int mod = 1e9 + 7; int32_t main() { #ifdef JahonaliX freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int h, w, a, b, c, n, x, y, xx, yy; cin >> h >> w >> a >> b >> c >> n >> x >> y >> xx >> yy; cout << min({abs(x - xx) * c + abs(y - yy) * c, abs(x - xx) * c + abs(y - yy) * a + b, abs(y - yy) * c + abs(x - xx) * a + b}); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...