# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
397482 | Iwanttobreakfree | Pot (COCI15_pot) | C++98 | 1 ms | 296 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 <iostream>
using namespace std;
int main(){
long long int n,tot,sum=0,num;
cin>>n;
while(n--){
cin>>num;
tot=1;
long long int base=num/10;
long long int coe=num%10;
for(int i=0;i<coe;i++){
tot*=base;
}
sum+=tot;
}
cout<<sum;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |