{"problem":{"name":"117. Books","description":{"content":"You have a list of $n$ books. You want to read one complete book, but you want to read as few pages as possible. You're given the list of how many pages each book has. Figure out the minimum number 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":"CF10269117"},"statements":[{"statement_type":"Markdown","content":"You have a list of $n$ books. You want to read one complete book, but you want to read as few pages as possible. You're given the list of how many pages each book has. Figure out the minimum number of pages that you have to read, reading at least one complete book.\n\nThe first line of input contains a positive integer $n$: the number of books. The next line contains $n$ space-separated integers: the number of pages of each book.\n\nOutput a single positive integer $p$: the minimum number of pages that you have to read, if you read at least one complete book.\n\n## Input\n\nThe first line of input contains a positive integer $n$: the number of books. The next line contains $n$ space-separated integers: the number of pages of each book.\n\n## Output\n\nOutput a single positive integer $p$: the minimum number of pages that you have to read, if you read at least one complete book.\n\n[samples]","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of books.  \nLet $ P = (p_1, p_2, \\dots, p_n) $ be a sequence of positive integers, where $ p_i $ is the number of pages in book $ i $.\n\n**Constraints**  \n$ n \\geq 1 $, and $ p_i \\geq 1 $ for all $ i \\in \\{1, \\dots, n\\} $.\n\n**Objective**  \nFind $ \\min_{i \\in \\{1, \\dots, n\\}} p_i $.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10269117","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}