Amazon OA 2 Round Robin 求助

原帖地址:一亩三分地

Round Robin Average Wait Time的题,对 [size=11.000000pt]int[] arrival = {0, 1, 3, 9};int[] run = {2, 1, 7, 5};[size=11.000000pt]int q = 2;[size=11.000000pt]的情况,我手算的Average Wait Time是4/4 = 1s,地里的面经的程序算的是1.25s,不知是我算错了还是程序有小bug?