Submission #761183

# Submission time Handle Problem Language Result Execution time Memory
761183 2023-06-19T10:22:08 Z LucaLucaM Colouring a rectangle (eJOI19_colouring) C++17
0 / 100
241 ms 6424 KB
#include <bits/stdc++.h>
#define int long long

using namespace std;

const int NMAX = 2e5;

int a[NMAX * 2 + 5];
int b[NMAX * 2 + 5];

signed main()
{
    int n, m;
    cin >> m >> n;
    for (int i=1; i<n+m; i++)
        cin >> a[i];
    for (int i=1; i<n+m; i++)
        cin >> b[i];
    int ans = 0;
    if (n == 1 || m == 1)
    {
        for (int i=1; i<n+m; i++)
        {
            ans += min(a[i], b[i]);
        }
        cout << ans;
    }


    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 108 ms 3376 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 241 ms 6424 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -