| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1190651 | wael241224 | Fancy Fence (CEOI20_fancyfence) | C++20 | 0 ms | 328 KiB |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define int long long
#define ld long double
#define endl '\n'
int n,c,k,ans=1;
int h[100000007],w[100000007];
long long gcd(long long a, long long b) {
return (b == 0) ? a : gcd(b, a % b);
}
long long lcm(long long a,long long b) {
return ((a*b)/gcd(a,b));
}
signed main(){
ios::sync_with_stdio(false); cin.tie(0);
cin >> n ;
for(int i=1;i<=n;i++) cin >> h[i];
for(int i=1;i<=n;i++) {
cin >> w[i];
w[i]+=w[i-1];
}
int H=(h[1]*(h[1]+1))/2;
int W=(w[n]*(w[n]+1))/2;
cout << H*W << endl;
return 0;
} | # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
