Submission #761182

# Submission time Handle Problem Language Result Execution time Memory
761182 2023-06-19T10:21:43 Z LucaLucaM Colouring a rectangle (eJOI19_colouring) C++17
0 / 100
249 ms 15064 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)
    {
        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 111 ms 7240 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 249 ms 15064 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 -