test.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # a, b, c = map(int, input().split())
  2. # print(a, b, c, sep=', ')
  3. # n = int(input())
  4. #n = 5000 # 121
  5. # n = 5000%8640
  6. # h = n//3600
  7. # m_d = n%3600//600
  8. # m = (n - h*3600 - m_d*600)//60
  9. # sec = n - h*3600 - m_d*600 - m*60
  10. # print(h, ":", m_d, m, ":", sec, sep="")
  11. # print(n//3600, ":", n%3600//600, n%3600//60, ":", n%3600%60//10, n%3600%60, sep="")
  12. # a, b, c = map(int, input().split())
  13. # # a = int(input())
  14. # print(a**2 + b**2 == c**2 or a**2 + c**2 == b**2 or b**2 + c**2 == a**2)
  15. # s = '1234567'
  16. # print(s[::-1])
  17. # s = input()
  18. # print(s[:3].upper() + s[3:len(s)-3] + s[len(s)-3:].upper())
  19. # print(input().title().swapcase())
  20. # my_list = [1] * 77
  21. # print(len(my_list))
  22. # my_list = list(input().split())
  23. # print('-'.join(my_list[0]).upper(), '-'.join(my_list[1]).upper())
  24. # my_list = list(input().split())
  25. # print(my_list[2], my_list[0][0].upper() + '.', my_list[0][1].upper() + '.')
  26. # my_list = list(input().split())
  27. # print('\n'.join(my_list))
  28. # s = input()
  29. # if s == 'Python':
  30. # print('ДА')
  31. # else:
  32. # print('НЕТ')
  33. # a, b, c = map(int, input().split())
  34. # print(a)
  35. # if (s := int(input())) > 10000:
  36. # print(f'Ого! {s}! Куда вам столько? Мы заберем {s - 10000}')
  37. # else:
  38. # print(f'Сумма {s} не превышает лимит, проходите')
  39. # if 'walrus' in (my_list := input()):
  40. # print('Нашли моржа')
  41. # else:
  42. # print('Никаких моржей тут нет')
  43. # s = list(input().strip())
  44. # t = list(input().strip())
  45. # s.reverse()
  46. # if t == s:
  47. # print('YES')
  48. # else:
  49. # print('NO')
  50. # s = input()
  51. # new_s = s[-1::-1]
  52. # if s == new_s:
  53. # print('YES')
  54. # else:
  55. # print('NO')
  56. # n = input().zfill(6)
  57. # left_list = list(map(int, n[:3].strip()))
  58. # right_list = list(map(int, n[-1:-4:-1].strip()))
  59. # if sum(left_list) == sum(right_list):
  60. # print('YES')
  61. # else:
  62. # print('NO')
  63. # x1, y1 = map(ord, input())
  64. # x2, y2 = map(ord, input())
  65. # dx = x2 - x1
  66. # dy = y2 - y1
  67. # print(x1, y1)
  68. # print(x2, y2)
  69. # if dx%2 == 0 and dy%2 == 0:
  70. # print('YES')
  71. # if dx%2 != 0 and dy%2 != 0:
  72. # print('YES')
  73. # else:
  74. # print('NO')
  75. # n, m = map(int, input().split())
  76. # l1 = list(map(int, input().split()))
  77. # l2 = list(map(int, input().split()))
  78. # l3 = list()
  79. # i = 0
  80. # l = len(l1) + len(l2)
  81. # while i < l:
  82. # if len(l1) != 0 and len(l2) != 0:
  83. # if l1[0] <= l2[0]:
  84. # l3.append(l1.pop(0))
  85. # else:
  86. # l3.append(l2.pop(0))
  87. # elif len(l1) != 0 and len(l2) == 0:
  88. # l3.append(l1.pop(0))
  89. # else:
  90. # l3.append(l2.pop(0))
  91. # i += 1
  92. # print(*l3)
  93. # b_len = int(input())
  94. # b = list(map(int, input().split()))
  95. # g_len = int(input())
  96. # g = list(map(int, input().split()))
  97. # b = [3, 3, 5, 5]
  98. # g = [4, 4, 2, 2]
  99. # i = 0
  100. # p = 0
  101. # while i < len(b) and len(g):
  102. # if b[i] in g:
  103. # p += 1
  104. # g.remove(b[i])
  105. # elif b[i] - 1 in g:
  106. # p += 1
  107. # g.remove(b[i] - 1)
  108. # elif b[i] + 1 in g:
  109. # p += 1
  110. # g.remove(b[i] + 1)
  111. # i += 1
  112. # print(p)