{"problem":{"name":"Next","description":{"content":"You are given $N$ integers $A_1, A_2, \\ldots, A_N$. Find the largest among those integers that are not the largest. The constraints of this problem guarantee that the answer exists.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc329_b"},"statements":[{"statement_type":"Markdown","content":"You are given $N$ integers $A_1, A_2, \\ldots, A_N$. Find the largest among those integers that are not the largest.\nThe constraints of this problem guarantee that the answer exists.\n\n## Constraints\n\n*   $2 \\leq N \\leq 100$\n*   $1 \\leq A_i \\leq 100$\n*   It is not the case that all $A_1, A_2, \\ldots, A_N$ are equal.\n*   All input values are integers.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$N$\n$A_1$ $A_2$ $\\ldots$ $A_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc329_b","tags":[],"sample_group":[["5\n2 1 3 3 2","2\n\nThe largest integer among $2,1,3,3,2$ is $3$.\nThe integers that are not $3$ among $2,1,3,3,2$ are $2,1,2$, among which the largest is $2$."],["4\n4 3 2 1","3"],["8\n22 22 18 16 22 18 18 22","18"]],"created_at":"2026-03-03 11:01:14"}}