제출 #1038672

#제출 시각아이디문제언어결과실행 시간메모리
1038672vjudge1Pot (COCI15_pot)C++17
50 / 50
1 ms348 KiB
#include<iostream>

using namespace std;

int main()
{
  int x = 0;
  int n;
  cin >> n;
  for(int i = 0; i < n; i ++)
    {
      int t;
      cin >> t;
      int num = 1, p = t % 10;
      while(p--) num *= t / 10;
      x += num;
    }
  cout << x << endl;
  return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...