Submission #713805

#TimeUsernameProblemLanguageResultExecution timeMemory
713805Dulguun88Pot (COCI15_pot)C++14
50 / 50
1 ms212 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n, t, e; long long int a=0; cin>>n; for(int i=0;i<n;i++){ cin>>t; e=t%10; t/=10; a+=pow(t,e); } cout<<a; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...