# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1173288 | Nomio | Pot (COCI15_pot) | C++20 | 0 ms | 328 KiB |
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
ll s = 0;
for(int i = 0; i < n; i++) {
int x;
cin >> x;
int a = x % 10;
x /= 10;
ll S = 1;
for(int j = 0; j < a; j++) {
S *= x;
}
s += S;
}
cout << s << '\n';
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |