andewK

Untitled

Sep 16th, 2021
679
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from functools import lru_cache
  2. f = lru_cache(None)(f)
  3. n = int(input())
  4. for i in range(n):
  5.     number = int(input())
  6.     print(f(number))
RAW Paste Data