Блог пользователя nachiiiketa

Автор nachiiiketa, история, 5 лет назад, По-английски

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.com/problemsets/acmsguru/problem/99999/112

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Take input this way and try it once a,b=map(int,input().split())