the cartesian coordinate system set sky there n star ith coordinate xi yi maximum brightness c equal star initial brightness si 0sicover time star twinkle at moment 0 ith star brightness si let moment t star brightness x then moment t1 star brightness x1 x1c 0 otherwiseYou want look sky q time in ith time look moment ti rectangle side parallel coordinate axis low left corner coordinate x1i y1i upper right x2i y2i for view want know total brightness star lie view rectangleA star lie rectangle lie border lie strictly inside