Critical Activity and Longest Path