# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713803 | Dulguun88 | Pot (COCI15_pot) | C++14 | 1083 ms | 300 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main(){
unsigned long long int n,m,kk,ll,sum=0;
cin>>n;
for(unsigned long long int i=0 ; i<n ; i++){
cin>>m;
kk=m/10;
ll=m%10;
m=kk;
for(int j=0 ; j<ll-1 ;j++) kk*=m;
sum+=kk;
kk=0;
}
cout<<sum;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |