{"problem":{"name":"003. Triangle Sum","description":{"content":"Triangles are one of the simplest geometric shapes. Equilateral triangles have the special property of all three of their sides being equal to each other. In this problem, you will be given a list of ","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10269003"},"statements":[{"statement_type":"Markdown","content":"Triangles are one of the simplest geometric shapes. Equilateral triangles have the special property of all three of their sides being equal to each other. In this problem, you will be given a list of side lengths of equilateral triangles. You should find the sum of the perimeters of the triangles, given that the triangles are all equilateral.\n\nThe first line of the input will contain a positive integer _n_ indicating the number of triangles. Each of the next _n_ lines will contain an integer _t_, indicating the side length of each triangle.\n\nPrint one number, the calculated sum of the perimeters of the triangles.\n\nIn the example, the first triangle has a side length of 3, so it has a perimeter of 9. The second triangle has a perimeter of 12, and the third triangle has a perimeter of 18.\n\n## Input\n\nThe first line of the input will contain a positive integer _n_ indicating the number of triangles. Each of the next _n_ lines will contain an integer _t_, indicating the side length of each triangle.\n\n## Output\n\nPrint one number, the calculated sum of the perimeters of the triangles.\n\n[samples]\n\n## Note\n\nIn the example, the first triangle has a side length of 3, so it has a perimeter of 9. The second triangle has a perimeter of 12, and the third triangle has a perimeter of 18.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of equilateral triangles.  \nLet $ T = (t_1, t_2, \\dots, t_n) $ be a sequence of positive integers, where $ t_i $ is the side length of the $ i $-th triangle.\n\n**Constraints**  \n1. $ n \\geq 1 $  \n2. For all $ i \\in \\{1, \\dots, n\\} $, $ t_i \\in \\mathbb{Z}^+ $\n\n**Objective**  \nCompute the sum of the perimeters of the triangles:  \n$$\n\\sum_{i=1}^{n} 3t_i\n$$","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269003","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}