Integers Come In All Sizes

  • + 0 comments

    Trying to do it with the least amount of code…

    a, b, c, d = map(int, [input() for _ in range(4)])
    print(a**b + c**d)
    

    I don't really like using input(), so at first I had the slightly longer…

    import sys
    
    a, b, c, d = map(int, sys.stdin.read().split())
    print(a**b + c**d)