Why is the solution not accepted?

Правка en2, от nachiiiketa, 2019-08-05 06:55:36

I have been trying this problem using C++, but have been unable to solve it. I tried doing in Python3 and it did fine on my Linux Machine, but when I submit it here, its shows me run-time error. Where am I going wrong?

The Code: a = int(input()) b = int(input()) ans = (a ** b) — (b ** a) print((ans))

Link to Problem: https://codeforces.net/problemsets/acmsguru/problem/99999/112

Теги a^b - b^a

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский nachiiiketa 2019-08-05 06:55:36 107
en1 Английский nachiiiketa 2019-08-05 06:52:35 366 Initial revision (published)