Submission #946034

#TimeUsernameProblemLanguageResultExecution timeMemory
946034miyFancy Fence (CEOI20_fancyfence)C++14
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { ios_base::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector<int> height(n); vector<int> width(n); for (int i = 0; i < n; i++) { cin >> height[i]; } for (int i = 0; i < n; i++) { cin >> width[i]; } int count = 0; for (int i = 0; i < n; i++) count += height[i] * width[i]; cout << count; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...