1 2 3 4 5 6 7 8 9 10 | -module(prog). -export([main/0]). main() -> case io:fread("","~d") of eof -> true; {ok,[X]} when X == 42 -> true; {ok,[X]} -> io:format("~p~n",[X]), main() end. |
LW1vZHVsZShwcm9nKS4KLWV4cG9ydChbbWFpbi8wXSkuCgptYWluKCkgLT4gCiAgICBjYXNlIGlvOmZyZWFkKCIiLCJ+ZCIpIG9mCiAgICAgICAgZW9mIC0+IHRydWU7CiAgICAgICAge29rLFtYXX0gd2hlbiBYID09IDQyIC0+IHRydWU7CiAgICAgICAge29rLFtYXX0gLT4gaW86Zm9ybWF0KCJ+cH5uIixbWF0pLAogICAgICAgICAgICAgICAgICAgIG1haW4oKQogICAgZW5kLg==
-
upload with new input
-
result: Success time: 0.18s memory: 8448 kB returned value: 0
50 59 71 12 42 1
50 59 71 12
-
result: Success time: 0.18s memory: 8448 kB returned value: 0
1 2 10 42 11
1 2 10



