1 2 3 4 5 | import math def strong_num(): return [x for x in range(1,1000) if x==int(reduce(lambda p,q:math.factorial(int(p))+math.factorial(int(q)),str(x)))] print(strong_num()) |
aW1wb3J0IG1hdGgKZGVmIHN0cm9uZ19udW0oKToKICAgIHJldHVybiBbeCBmb3IgeCBpbiByYW5nZSgxLDEwMDApIGlmIHg9PWludChyZWR1Y2UobGFtYmRhIHAscTptYXRoLmZhY3RvcmlhbChpbnQocCkpK21hdGguZmFjdG9yaWFsKGludChxKSksc3RyKHgpKSldCgpwcmludChzdHJvbmdfbnVtKCkp
-
upload with new input
-
result: Time limit exceeded time: 5s memory: 10952 kB signal: 24 (SIGXCPU)
1000


