ohwhatalovelyday

Untitled

Jul 4th, 2023
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. from math import sqrt
  2.  
  3.  
  4. def task1():
  5.     print(input() + input() + input())
  6.  
  7.  
  8. def task2():
  9.     a = int(input())
  10.     b = int(input())
  11.     print(2 ** 8 * a ** 8 - 2 ** 4 * a ** 4 + 2 ** 2 * a ** 2 - 2 * b + 1 / 2 * sqrt(b) + a * b ** (a + b) / 2)
  12.  
  13.  
  14. def task3():
  15.     a = input()
  16.     b = input()
  17.     print(a + b, end='!')  # 23!
  18.  
  19.  
  20. def task4():
  21.     print('(123 + 456 − 789) % 10 = 0')
  22.  
  23.  
  24. def task5():
  25.     x = int(input())
  26.     print(x + 1, x - 1, sep='')
  27.  
  28.  
  29. def task6():
  30.     km = int(input())
  31.     print(km // 100000)
  32.  
  33.  
  34. def main():
  35.     task1()
  36.     task2()
  37.     task3()
  38.     task4()
  39.     task5()
  40.     task6()
  41.  
  42.  
  43. if __name__ == '__main__':
  44.     main()
  45.  
Advertisement
Add Comment
Please, Sign In to add comment