Integers Come In All Sizes

Sort by

recency

|

394 Discussions

|

  • + 0 comments

    Here's my one-liner code

    print((lambda a, b, c, d: (a**b) + (c**d))(*[int(input()) for _ in range(4)]))
    
  • + 0 comments
    a = int(input())
    b = int(input())
    c = int(input())
    d = int(input())
    print((a ** b) + (c ** d))
    
  • + 0 comments
    a, b, c, d = [int(input()) for _ in range(4)]
    
    print(pow(a, b) + pow(c, d))
    
  • + 0 comments
    print(pow(int(input()),int(input()))+pow(int(input()),int(input())))
    
  • + 0 comments

    a=int(input()) b=int(input()) c=int(input()) d=int(input()) print(pow(a,b)+pow(c,d))