mralex18

kpolyakov_14_3

May 1st, 2021
553
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. t1 = {
  2.     240 : 1932,
  3.     261 : 1997,
  4.     295 : 1939,
  5.     325 : 1971,
  6.     356 : 1972,
  7.     367 : 1979,
  8.     427 : 2003,
  9.     517 : 1967,
  10.     625 : 1988,
  11.     630 : 1993,
  12.     743 : 1951,
  13.     854 : 1955,
  14.     943 : 1977,
  15.     962 : 1936
  16. }
  17.  
  18. t2 = {
  19.     240 : 325,
  20.     295 : 325,
  21.     325 : 261,
  22.     356 : 261,
  23.     367 : 427,
  24.     240 : 517,
  25.     295 : 517,
  26.     517 : 625,
  27.     517 : 630,
  28.     743 : 367,
  29.     854 : 367,
  30.     943 : 427,
  31.     962 : 356,
  32.     962 : 943
  33. }
  34.  
  35. g = {}
  36. for key in t2.keys():
  37.     g[key] = []
  38.     g[t2[key]] = []
  39.  
  40. for key in t2.keys():
  41.     g[key].append(t2[key])
  42.  
  43. ans = 0
  44.  
  45. for key in g.keys():
  46.     for i in g[key]:
  47.         for z in g[i]:
  48.             print(key, z)
  49.             print(t1[z], t1[key], t1[z] - t1[key])
  50.             if (t1[z] - t1[key] <= 55):
  51.                 ans += 1
  52.  
  53. print(ans)
  54.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×