Submission #755349

# Submission time Handle Problem Language Result Execution time Memory
755349 2023-06-10T00:51:44 Z Charizard2021 Self Study (JOI22_ho_t2) C++17
0 / 100
1 ms 300 KB
#include<bits/stdc++.h>
using namespace std;
void solveSubtask1(long long n){
    long long a[n];
    long long b[n];
    for(int i = 0; i < n; i++){
        cin >> a[i];
    }
    for(int i = 0; i < n; i++){
        cin >> b[i];
    }
    long long ans = 0;
    for(int i = 0; i < n; i++){
        ans += max(a[i], b[i]);
    }
    cout << ans << "\n";
}
int main(){
    long long n, m;
    cin >> n >> m;
    if(m == 1){
        //subtask 1
        solveSubtask1(n);
    }
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 300 KB Output isn't correct
3 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 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 300 KB Output isn't correct
3 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 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 300 KB Output isn't correct
3 Halted 0 ms 0 KB -