Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
подсчёт кратчайших путей
const n = 4; m = 5; var i, j, x, y : integer; p : array [1..n,1..m] of integer; begin for i := 1 to n do p[i,1] := 1; for j := 1 to m do p[1,j] := 1; readln (x); readln (y); for i := 2 to x do for j := 2 to y do p[i, j] := p[i-1,j] + p[i, j-1]; writeln (p[i,j]); end.
run
|
edit
|
history
|
help
0
3
Régua do Tanque Cilindrico Horizontal
1
10
OLEG-02oct2017
real vs integer
sp2014e4
45
Урок 3 задача 3
test09