MRT - Minimum Retrieval Time
let MRT = 0 ; for ( let i = 0 ; i < n ; i ++ ) { let sum = 0 ; for ( let j = 0 ; j <= i ; j ++ ) sum += L [ j ] ; MRT += sum ; } MRT /= n ; document . write ( " " + " " + MRT ) ; }