Submission #870430

# Submission time Handle Problem Language Result Execution time Memory
870430 2023-11-07T23:40:21 Z gutzzy Fancy Fence (CEOI20_fancyfence) C++14
0 / 100
1 ms 820 KB
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    vector<long long> h(n);
    vector<long long> w(n);
    long long m=0;
    for(int i=0;i<n;i++) cin >> h[i];
    for(int i=0;i<n;i++){
        cin >> w[i];
        m += w[i];
    }
    cout << (((h[0]*(h[0]+1))/2)*((m*(m+1))/2))%(1000000007);
    

    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 820 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -