WitchBlade

Untitled

Sep 25th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Бин числа
  2.  
  3. n = int(input())
  4. if n != 0:
  5.     while (n % 2 == 0):
  6.         n = n / 2
  7. if int(n) == 1:
  8.     print('YES')
  9. else:
  10.     print('NO')
  11.  
  12.  
  13. Неглухой телефон
  14.  
  15. a= int(input())
  16. print(a)
  17.  
  18. A+B
  19.  
  20. a, b = map(int, input().split())
  21. print(a+b)
  22.  
  23.  
  24. Бисер
  25.  
  26. a = int(input())
  27. print(a+1)
  28.  
  29. Олимпиада
  30.  
  31. print(1)
  32.  
  33. Больше-меньше
  34.  
  35. a = int(input())
  36. b = int(input())
  37. if(a<b):
  38.     print('<')
  39. elif (a>b):
  40.     print('>')
  41. else:
  42.     print('=')
  43.  
  44. Орешки
  45.  
  46. # a = int(input())
  47. # b = int(input())
  48. # c = int(input())
  49. a, b, c = map(int, input().split())
  50. if (a*b)> c:
  51.     print('YES')
  52. elif (a*b)==c:
  53.     print('YES')
  54. else:
  55.     print('NO')
  56.  
  57. Эния
  58.  
  59. n, a, b = map(int, input().split())
  60. print(n*a*b*2) 
  61.  
  62. Гулливер
  63.  
  64. a, b = map(int, input().split())
  65. print(a*a*b)
  66.  
  67. Два бандита
  68.  
  69. h, l = map(int, input().split())
  70. lol = h + l - 1
  71. print(lol-h, lol-l, sep = ' ')
  72.  
  73. Зарплата
  74.  
  75. a = input().split()
  76. print(max(int(a[0]),int(a[1]),int(a[2])) - min(int(a[0]),int(a[1]),int(a[2])))
  77.  
  78. Игра
  79.  
  80. a = int(input())
  81. print(a,9,9 - a, sep='')
  82.  
  83. Арифметика
  84.  
  85. a,b,c = map(int, input().split())
  86. if (a*b==c):
  87.     print('YES')
  88. else:
  89.     print('NO')
Add Comment
Please, Sign In to add comment