{"problem":{"name":"136. Math Team","description":{"content":"You're competing in a large individual math team contest. In the contest, you're given several sets of problems, and for each one of them you get a certain number of them correct. Given this informati","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269136"},"statements":[{"statement_type":"Markdown","content":"You're competing in a large individual math team contest. In the contest, you're given several sets of problems, and for each one of them you get a certain number of them correct. Given this information, you want to figure out your total score in the competition.\n\nFor example, if you scored a 2 out of 3 on the first problem set, and a 3 out of 5 on the second problem set, your total score would be 5 out of 8.\n\nThe first line of input contains a single positive integer $n$: the number of problem sets.\n\nThe next $n$ lines contain two integers separated by a slash \"/\": the number of questions you got right in the problem set, and the total number of questions in the problem set.\n\nOutput two slash-separated integers: the total number of questions you got right, and the total number of question you got wrong, respectively.\n\n## Input\n\nThe first line of input contains a single positive integer $n$: the number of problem sets.The next $n$ lines contain two integers separated by a slash \"/\": the number of questions you got right in the problem set, and the total number of questions in the problem set.\n\n## Output\n\nOutput two slash-separated integers: the total number of questions you got right, and the total number of question you got wrong, respectively.\n\n[samples]","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of problem sets.  \nFor each $ i \\in \\{1, \\dots, n\\} $, let $ r_i \\in \\mathbb{Z} $ be the number of correct answers and $ t_i \\in \\mathbb{Z} $ be the total number of questions in problem set $ i $.\n\n**Constraints**  \n1. $ n \\geq 1 $  \n2. For each $ i \\in \\{1, \\dots, n\\} $: $ 0 \\leq r_i \\leq t_i $\n\n**Objective**  \nCompute:  \n- Total correct: $ R = \\sum_{i=1}^{n} r_i $  \n- Total wrong: $ W = \\sum_{i=1}^{n} (t_i - r_i) $  \n\nOutput: $ R / W $","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269136","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}