Submission #592222

# Submission time Handle Problem Language Result Execution time Memory
592222 2022-07-08T18:49:38 Z Kipras Colouring a rectangle (eJOI19_colouring) C++17
10 / 100
66 ms 8632 KB
#include <bits/stdc++.h>

typedef long long ll;

using namespace std;

int main()
{

    ios_base::sync_with_stdio(0);cin.tie(nullptr);

    ll n, m;
    cin>>m>>n;

    if(m==1){
        ll res=0;
        vector<ll> a, b;
        for(int i = 0; i < n; i++){
            ll aa;
            cin>>aa;
            a.push_back(aa);
        }
        for(int i = 0; i < n; i++){
            ll aa;
            cin>>aa;
            b.push_back(aa);
        }
        reverse(b.begin(), b.end());
        for(int i = 0; i < n; i++){
            res+=min(a[i], b[i]);
        }
        cout<<res;
        return 0;
    }

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 39 ms 4872 KB Output is correct
2 Correct 42 ms 8384 KB Output is correct
3 Correct 44 ms 8376 KB Output is correct
4 Correct 66 ms 8500 KB Output is correct
5 Correct 55 ms 8632 KB Output is correct
6 Correct 38 ms 7864 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -