Submission #999231

#TimeUsernameProblemLanguageResultExecution timeMemory
999231AliHasanliPot (COCI15_pot)C++17
50 / 50
1 ms348 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...