|
|
вернуться в форумCan drunk King make the first and the last moves in the same direction? No comments if "NO COMMENTS" why you write this? information - Zero King cannot do that because the move to the corner and the move from that corner cannot be the same direction. It's really easy!!! var n,m:real; begin readln(m,n); writeln((m*n-m-n-1+sqrt(2)*(n+m+1)):0:12); end. Pascal forever!!! FFFFUUUU~. It's not Pascal, it's just Math!!1 how did you get to the formula? m*n-m-n-1+sqrt(2)*(n+m+1) |
|
|