{"problem":{"name":"Doukasen","description":{"content":"We have $N$ fuses connected in series. The $i$\\-th fuse from the left has a length of $A_i$ centimeters and burns at a constant speed of $B_i$ centimeters per second. Consider igniting this object fro","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc223_c"},"statements":[{"statement_type":"Markdown","content":"We have $N$ fuses connected in series. The $i$\\-th fuse from the left has a length of $A_i$ centimeters and burns at a constant speed of $B_i$ centimeters per second.\nConsider igniting this object from left and right ends simultaneously. Find the distance between the position where the two flames will meet and the left end of the object.\n\n## Constraints\n\n*   $1 \\leq N \\leq 10^5$\n*   $1 \\leq A_i,B_i \\leq 1000$\n*   All values in input are integers.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n$A_1$ $B_1$\n$A_2$ $B_2$\n$\\vdots$\n$A_N$ $B_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc223_c","tags":[],"sample_group":[["3\n1 1\n2 1\n3 1","3.000000000000000\n\nThe two flames will meet at $3$ centimeters from the left end of the object."],["3\n1 3\n2 2\n3 1","3.833333333333333"],["5\n3 9\n1 2\n4 6\n1 5\n5 3","8.916666666666668"]],"created_at":"2026-03-03 11:01:13"}}