Submission #745774

# Submission time Handle Problem Language Result Execution time Memory
745774 2023-05-21T07:37:21 Z vjudge1 Fancy Fence (CEOI20_fancyfence) C++17
0 / 100
1 ms 212 KB
#include <bits/stdc++.h>
using namespace std;

int main(){

    int h, w;
    int wsum = 0;
    int n; cin >> n;
    for(int i = 0; i < n; i++){
        cin >> h;
    }
    for(int i = 0; i < n; i++){
        cin >> w;
        wsum += w;
        wsum = wsum%1000000007;
    }
    wsum *= (wsum+1);
    wsum = wsum%1000000007;
    wsum *= h;
    wsum %= 1000000007;
    wsum *= (h+1);
    wsum = wsum%1000000007;
    while(wsum % 4 != 0){
        wsum += 1000000007;
    }
    wsum /= 4;
    cout << wsum;
}
# 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 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 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 -