Submission #1053814

#TimeUsernameProblemLanguageResultExecution timeMemory
1053814AlebnSelf Study (JOI22_ho_t2)C++14
10 / 100
129 ms9056 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; vector<int> a(n), b(n); int res = INT_MAX; for(int i = 0; i < n; i++) cin >> a[i]; for(int i = 0; i < n; i++) { cin >> b[i]; res = min(res, m * max(a[i], b[i])); } cout << res << "\n"; }
#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...