π π
25 β‘οΈ n
ππ result π‘
π€π€ β‘οΈ π result
π i πβ©β© 0 nβοΈ π
π j πβ©β© 0 nβοΈ π
βͺοΈ i β j βΆοΈ n β 2 π
πͺ result π€*π€ πͺ β‘οΈ π result
π
π
π
πͺ result π€ π€ πͺ β‘οΈ π result
π
π
βͺοΈ i π n β 1 π
π
π
π
πͺ result π€βnπ€ πͺ β‘οΈ π result
π
π
π resultβοΈ
π