Submission #582162

# Submission time Handle Problem Language Result Execution time Memory
582162 2022-06-23T13:06:40 Z TimDee Colouring a rectangle (eJOI19_colouring) C++14
0 / 100
352 ms 6552 KB
        #include <bits/stdc++.h>
        using namespace std;
        #define int long long
        #define forn(i,n) for (int i=0; i<n; ++i)
    	const int linf = LLONG_MAX;
         
        int32_t main() {
          
          int n,m; cin>>n>>m;
          vector<int> a(n+m-1,linf), b(n+m-1,linf);
          forn(i,n+m-1) cin>>a[i];
          forn(i,n+m-1) cin>>b[i];
          int ans=0;
          forn(i,n+m-1) 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 221 ms 3416 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 352 ms 6552 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 -