|
|
back to boardAC 0.001s and 128Kb :) ... for (i=0; i<num; i++) { scanf("%d:%d", &min, &sec); if (min==0 && sec<7) continue; if (sec != 0) min += 1; basic_price += min*basic_pm; min_all += min; } ... p.s.: HF & GL, it's very easy Re: AC I wrote analogous solution by myself with a bit different cycles, but now it gets WA#6, not AC :( |
|
|