1 2 3 4 5 6 | runtimetype :: Show a => a -> Integer -> String runtimetype x n = case n of 0 -> show x _ -> runtimetype (Just x) (n-(1::Integer)) main = interact $ (++"\n") . runtimetype () . read |
cnVudGltZXR5cGUgOjogU2hvdyBhID0+ICBhIC0+IEludGVnZXIgLT4gU3RyaW5nCnJ1bnRpbWV0eXBlIHggbiA9IGNhc2UgbiBvZiAKICAwIC0+IHNob3cgeAogIF8gLT4gcnVudGltZXR5cGUgKEp1c3QgeCkgKG4tKDE6OkludGVnZXIpKSAKICAKbWFpbiA9IGludGVyYWN0ICQgKCsrIlxuIikgLiBydW50aW1ldHlwZSAoKSAuIHJlYWQgIA==
-
upload with new input
-
result: Success time: 0.01s memory: 3676 kB returned value: 0
12
Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just ())))))))))))
-
result: Runtime error time: 0.01s memory: 3676 kB signal: -1
prog: Prelude.read: no parse
-
result: Success time: 0.01s memory: 3720 kB returned value: 0
44
Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just (Just ())))))))))))))))))))))))))))))))))))))))))))


