문제
풀이
#include <iostream>
#include <string>
using namespace std;
void solve(void) {
string s; cin >> s;
int ans = 0;
for (int i=0; i<5; i++) {
int x = s[i] - '0';
ans += x * x * x * x * x;
}
cout << ans;
}
int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}