Advertisement
PlotnikovPhilipp

Untitled

Oct 25th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import math
  3. n = int(input())
  4. k = int(input())
  5. minimum = int(math.pow(k, n) - 1)
  6. maximum = int(math.pow(k, n + 1) - 1)
  7. print('[', minimum, '; ', maximum, ']', sep="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement