Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Repeated String
EXTREMEXPLOIT
Dec 29th, 2019
203
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
repeatedString
(
s
,
n
)
:
return
s.
count
(
"a"
)
*
(
n//
len
(
s
)
)
+ s
[
:
round
(
(
n/
len
(
s
)
- n//
len
(
s
)
)
*
len
(
s
)
)
]
.
count
(
"a"
)
# Si ves esto pues me cago en Python por convertir 0.99999999 a 0.
Add Comment
Please,
Sign In
to add comment
Public Pastes
Stress Test - Bash
Bash | 19 min ago | 0.10 KB
**Count Display** rev_01
Arduino | 1 hour ago | 2.37 KB
3500 form
SQL | 1 hour ago | 6.79 KB
Uploading of many file in Django App
Python | 2 hours ago | 3.97 KB
Tools
Lua | 2 hours ago | 31.35 KB
Untitled
Lua | 2 hours ago | 3.60 KB
Untitled
YAML | 2 hours ago | 14.71 KB
Untitled
JavaScript | 3 hours ago | 0.20 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!