diff --git a/pot.py b/pot.py new file mode 100644 index 0000000..3892697 --- /dev/null +++ b/pot.py @@ -0,0 +1,10 @@ +n = int(input()) + +sum = 0 +for _ in range(n): + x = int(input()) + base = x // 10 + exponent = x % 10 + sum += pow(base, exponent) + +print(sum) \ No newline at end of file