1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Program exer(input,output); var N,i,p:integer; f:boolean; begin readln(N); i:=1; p:=1; f:=false; while (not f) do begin p:=i*p; if (p>=N) then f:=true else i:=i+1; end; writeln(i); end. |
UHJvZ3JhbSBleGVyKGlucHV0LG91dHB1dCk7CnZhciBOLGkscDppbnRlZ2VyOwogICAgZjpib29sZWFuOwpiZWdpbgogICAgcmVhZGxuKE4pOwogICAgaTo9MTsKICAgIHA6PTE7CiAgICBmOj1mYWxzZTsKICAgIHdoaWxlIChub3QgZikgZG8KICAgICAgICAgIGJlZ2luCiAgICAgICAgICBwOj1pKnA7CiAgICAgICAgICBpZiAocD49TikgdGhlbgogICAgICAgICAgICAgICAgIGY6PXRydWUKICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgaTo9aSsxOwogICAgICAgICAgIGVuZDsKICAgIHdyaXRlbG4oaSk7CmVuZC4=
-
upload with new input
-
result: Success time: 0.01s memory: 4112 kB returned value: 0
10
4
-
result: Runtime error time: 0.02s memory: 4112 kB signal: -1
./prog: attempt to read past end of Input (error #454 at 804a010)



