Submission #866387

#TimeUsernameProblemLanguageResultExecution timeMemory
866387Tejas_MondeeriPot (COCI15_pot)C++14
50 / 50
0 ms436 KiB
// pot #include <bits/stdc++.h> using namespace std; #define ull unsigned long long #define ll long long void fn() { // fstream myfile; // myfile.open("inp.txt", ios::in); int n, sol = 0; cin >> n; vector<int> nums(n); for (int i = 0; i < n; i++) { cin >> nums[i]; int base = nums[i] / 10, p = nums[i] % 10; sol += pow(base, p); } cout << sol << endl; } int main() { int t = 1; // cin>>t; while (t--) fn(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...