Why answers are different for below two codes implementing Floyd's algorithm?

Eklenme Tarih 1 hour ago
Active 19
Görüntülenme 89
S

Why answers are different for below two codes implementing Floyd's algorithm?