1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | program eqfst (input,output); var a, b , x: real; begin readln(a, b); if (a=0) then begin if (b=0) then writeln('trivial') else writeln('impossible') end; if (a<>0) then begin x:=-(b/a); writeln(x:0:6) end; end. |
-
upload with new input
-
result: Success time: 0.01s memory: 4112 kB returned value: 0
3 2
-0.666667
-
result: Success time: 0.01s memory: 4112 kB returned value: 0
2 3
-1.500000
-
result: Success time: 0.01s memory: 4112 kB returned value: 0
0 1
impossible
-
result: Success time: 0.01s memory: 4112 kB returned value: 0
0 0
trivial



