Submission #582160

# Submission time Handle Problem Language Result Execution time Memory
582160 2022-06-23T13:05:24 Z TimDee Colouring a rectangle (eJOI19_colouring) C++14
0 / 100
360 ms 15108 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<<'\n';
      
      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 156 ms 7244 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 360 ms 15108 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 -