Submission #465253

#TimeUsernameProblemLanguageResultExecution timeMemory
465253EliasColouring a rectangle (eJOI19_colouring)C++17
0 / 100
62 ms3404 KiB
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { cin.tie(0); ios_base::sync_with_stdio(false); int n, m; cin >> n >> m; vector<int> RD = vector<int>(n); vector<int> RU = vector<int>(n); for (int &x : RD) cin >> x; for (int &x : RU) cin >> x; reverse(RU.begin(), RU.end()); int sol = 0; for (int i = 0; i < n; i++) sol += min(RD[i], RU[i]); cout << sol; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...