set.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # d = set()
  2. # print(type(d))
  3. # my_list = [56, 59, 53, 75, 62, 61, 75, 65, 59, 62, 64, 53,
  4. # 54, 62, 69, 53, 55, 62, 54, 66, 55, 57, 58, 75,
  5. # 72, 55, 51, 56, 71, 66, 57, 56, 59, 73, 68, 57,
  6. # 50, 54, 62, 68, 59, 64, 59, 59, 71, 68, 57, 54, 53, 72]
  7. # my_set = set(my_list)
  8. # print(sum(my_set)/len(my_set))
  9. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10. # my_set = set(input())
  11. # if len(my_set)%2 == 0:
  12. # print("CHAT WITH HER!")
  13. # else:
  14. # print("IGNORE HIM!")
  15. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. # my_set = set(input().split())
  17. # print(4 - len(my_set))
  18. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19. # my_set = set(input().lower())
  20. # if len(my_set) == 26:
  21. # print("YES")
  22. # else:
  23. # print("NO")
  24. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25. # year = int(input())
  26. # while year <= 9999:
  27. # year += 1
  28. # if (len(set(str(year))) == 4):
  29. # print(year)
  30. # break
  31. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. # s = input()
  33. # my_set = {i for i in s if i.isalpha()}
  34. # print(len(my_set))
  35. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. # words = ['mention', 'soup', 'pneumonia', 'tradition', 'concert', 'tease', 'generation',
  37. # 'winter', 'national', 'jacket', 'winter', 'wrestle', 'proposal', 'error',
  38. # 'pneumonia', 'concert', 'value', 'value', 'disclose', 'glasses', 'tank',
  39. # 'national', 'soup', 'feel', 'few', 'concert', 'wrestle', 'proposal', 'soup',
  40. # 'sail', 'brown', 'service', 'proposal', 'winter', 'jacket', 'mention', 'tradition',
  41. # 'value', 'feel', 'bear', 'few', 'value', 'winter', 'proposal', 'government',
  42. # 'control', 'value', 'few', 'generation', 'service', 'national',
  43. # 'tradition', 'government', 'mention', 'proposal']
  44. # my_set = set(words)
  45. # cnt = 0
  46. # for i in my_set:
  47. # if len(i) > 6:
  48. # cnt += 1
  49. # print(cnt)
  50. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. # n = int(input())
  52. # for i in range(n):
  53. # my_set = set(map(int, input().split()))
  54. # print(len(my_set))
  55. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  56. # my_set = {'government', 'control', 'winter', 'few', 'generation',
  57. # 'service', 'national', 'tradition', 'government'}
  58. # my_set.update({'concert', 'brown', 'jacket', 'value'})
  59. # print(my_set)
  60. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  61. # my_set = {
  62. # 'mention', 'soup', 'pneumonia', 'tradition', 'concert', 'tease', 'generation',
  63. # 'winter', 'national', 'jacket', 'winter', 'wrestle', 'proposal', 'error',
  64. # 'pneumonia', 'concert', 'value', 'value', 'disclose', 'glasses', 'tank',
  65. # 'national', 'soup', 'feel', 'few', 'concert', 'wrestle', 'proposal', 'soup',
  66. # 'sail', 'brown', 'service', 'proposal', 'winter', 'jacket', 'mention',
  67. # 'tradition', 'value', 'feel', 'bear', 'few', 'value', 'winter', 'proposal',
  68. # 'government', 'control', 'value', 'few', 'generation', 'service', 'national',
  69. # 'tradition', 'government', 'mention', 'proposal'
  70. # }
  71. # my_set.remove('government')
  72. # my_set.remove('national')
  73. # my_set.remove('tease')
  74. # my_set.discard('tease')
  75. # print(my_set)
  76. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. # n = int(input())
  78. # my_list = []
  79. # my_set = set()
  80. # for i in range(n):
  81. # my_list.append(set(map(int, input().split())))
  82. # for i in my_list:
  83. # my_set.update(i)
  84. # print(len(my_set))
  85. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  86. # my_list = input().lower().split(',')
  87. # my_set = set()
  88. # for i in my_list:
  89. # if i not in my_set:
  90. # my_set.add(i)
  91. # print('НЕТ')
  92. # else:
  93. # print('ДА')
  94. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  95. # s1 = set(map(int, input().split()))
  96. # s2 = set(map(int, input().split()))
  97. # s3 = s1 & s2
  98. # l = list(s3)
  99. # l.sort()
  100. # print(*l)
  101. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  102. # s1 = set(map(int, input().split()))
  103. # s2 = set(map(int, input().split()))
  104. # s3 = s1 - s2
  105. # l = list(s3)
  106. # l.sort()
  107. # print(*l)
  108. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  109. # my_list = list(input())
  110. # l = []
  111. # for i in my_list:
  112. # if i.isdigit() and my_list.count(i) > 1 and i not in l:
  113. # l.append(i)
  114. # if len(l) == 0:
  115. # print('NO')
  116. # else:
  117. # print(*sorted(l))
  118. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  119. # l1 = list(input())
  120. # l2 = []
  121. # for i in l1:
  122. # if i not in l2:
  123. # l2.append(i)
  124. # print(''.join(l2))
  125. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  126. # my_frozen = frozenset()
  127. # print(my_frozen)
  128. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  129. # l = [int('7'*i) for i in range(1, 78)]
  130. # my_frozen = frozenset(l)
  131. # print(my_frozen)
  132. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  133. # l = {int('7'*i) for i in range(1, 78)}
  134. # print(l)
  135. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  136. a = frozenset([1, 2])
  137. b = frozenset([3, 4])
  138. frozen = {a: 1, 'name': b, b: a}
  139. print(frozen)