[121] IT 비전공자 [dreamhack]ICM2022문제 풀기
main.pyimport randomfrom fractions import Fractiondef enc(p, n, key1, key2): q = (Fraction(p, n+1)*key1**(n+1)) - (Fraction(p, n+1)*key2**(n+1)) print("[OK] plain is encrypted : ", q) return qdef dec(q): # cencoreddef key_make(): n, key1, key2 = 0, 1, 0 while key2 readme.txt n = 3key 1 = #cencored#key 2 = 95q = -200640142664324295933714p = #cencored# (p is number)if you get th..