Submission #397482

#TimeUsernameProblemLanguageResultExecution timeMemory
397482IwanttobreakfreePot (COCI15_pot)C++98
50 / 50
1 ms296 KiB
#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 timeMemoryGrader output
Fetching results...