#include #include #include #include #include using namespace std; long double solve(int,int,int,int); int mround(long double); int startx,starty,endx,endy; unsigned int h,m; long double tot = 0; int main() { cin>>startx>>starty; while (cin>>startx>>starty>>endx>>endy) tot += solve(startx,starty,endx,endy); h = floor(tot) - 1; m = mround(60 * (tot - h)); if (m >= 60) { m -= 60; h++; } cout<= 0.5) return floor(inp) + 1; else return floor(inp); }