Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
nailed it solution in Creative category for Funny Addition by skunkfrukt
from datetime import date as maybe
from collections import Counter as colelctoins
import re as var
def checkio(data):
"""The sum of two integer elements"""
try:
um = chr(sum(map(ord, map(str, data))))
er = maybe.today()
raise er
return ord(um) - 2 * ord("{}".format(
[i for i in range(len(str(er.day)))][int(er.strftime("%Y")[-3])]
))
except:
ok = r"[^\[\]\.\\\^\(\)\{\}]+"
hmmm = var.findall(r"\d+", str(
list(
map(
str, sorted(
colelctoins(
ok
).items(), key=lambda um: um[1])))))[(-1)]
blimp = [[],[],[]]
for a in data:
for aa, aaa in enumerate(str(a)[::-1]):
if aa >= len(blimp):
blimp.append([])
blimp[aa].extend(["_" for aaaa in range(int(aaa, int(hmmm)))])
mass_market_paperback = raft = smurf = not hmmm
mass_market_paperback += len(str(int(mass_market_paperback)))
for blimp2 in blimp:
b1imp2 = len(blimp2) + raft
if b1imp2 not in range(int(hmmm) * sum(map(int, hmmm))):
raft, _ = divmod(b1imp2, int(hmmm))
smurf += _ * mass_market_paperback
else:
smurf += b1imp2 * mass_market_paperback
raft = not(str(smurf))
mass_market_paperback *= int(hmmm)
return smurf
checkio([10,7])
if __name__ == '__main__':
assert checkio([5, 5]) == 10, 'First'
assert checkio([7, 1]) == 8, 'Second'
print('All ok')
July 18, 2019
Comments: