Advertisement
Guest User

memes

a guest
Feb 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.73 KB | None | 0 0
  1. # all = [int(a) for a in input().split(" ")]
  2. # good = set([int(a) for a in input().split(" ")])
  3. # bad = set([int(a) for a in input().split(" ")])
  4. #
  5. #
  6. # good &= set(all)
  7. # bad &= set(all)
  8. # index = 0
  9. #
  10. #
  11. # def freq(a, arr):
  12. #     return sum(1 for i in arr if a == i)
  13. #
  14. #
  15. # ht = {}
  16. # for a in all:
  17. #     if a in ht:
  18. #         ht[a] += 1
  19. #     else:
  20. #         ht[a] = 1
  21. #
  22. # for a in good:
  23. #     index += ht[a]
  24. # for a in bad:
  25. #     index -= ht[a]
  26. # print(index)
  27.  
  28. # nums = [int(a) for a in input().split(" ")]
  29. # print("\n".join(" ".join(str(i*j) for i in range(1, nums[1] + 1)) for j in range(1, nums[0] + 1)))
  30. #
  31. # inpdict = []
  32. #
  33. # for _ in range(int(input())):
  34. #     inpstr = input().split(" - ")
  35. #     translations = inpstr[1].split(", ")
  36. #     for t in translations:
  37. #         inpdict.append((t, inpstr[0]))
  38. #
  39. # table = {}
  40. # for (w, t) in inpdict:
  41. #     if w in table:
  42. #         table[w].append(t)
  43. #     else:
  44. #         table[w] = [t]
  45. #
  46. #
  47. # print(len(table))
  48. # print("\n".join(sorted(a[0] + " - " + ", ".join(sorted(a[1])) for a in table.items())))
  49.  
  50.  
  51. # def generate_n_primes(N):
  52. #     primes = [2]
  53. #     chkthis = 3
  54. #     while len(primes) < N:
  55. #         ptest = [chkthis for i in primes if chkthis % i == 0]
  56. #         primes += [] if ptest else [chkthis]
  57. #         chkthis += 2
  58. #     return primes[N - 1]
  59. #
  60. #
  61. # print(generate_n_primes(int(input())))
  62.  
  63. # test_string = input()
  64. #
  65. # freq_table = {}
  66. # for c in test_string:
  67. #     if c in freq_table and freq_table[c] == 1:
  68. #         freq_table[c] -= 1
  69. #     elif c in freq_table and freq_table[c] == 0:
  70. #         freq_table[c] += 1
  71. #     else:
  72. #         freq_table[c] = 1
  73. #
  74. # if sum(freq_table.values()) > 1:
  75. #     print("NO")
  76. # else:
  77. #     print("YES")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement