EXTREMEXPLOIT

Repeated String

Dec 29th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. def repeatedString(s, n):
  2.     return s.count("a") * (n//len(s)) + s[:round((n/len(s) - n//len(s)) * len(s))].count("a")
  3.  
  4. # Si ves esto pues me cago en Python por convertir 0.99999999 a 0.
Add Comment
Please, Sign In to add comment