{"problem":{"name":"To Be Saikyo","description":{"content":"There are $N$ people numbered $1$ through $N$. Each person has a integer score called programming ability; person $i$'s programming ability is $P_i$ points. How many more points does person $1$ need, ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc313_a"},"statements":[{"statement_type":"Markdown","content":"There are $N$ people numbered $1$ through $N$. Each person has a integer score called programming ability; person $i$'s programming ability is $P_i$ points. How many more points does person $1$ need, so that person $1$ becomes the strongest? In other words, what is the minimum non-negative integer $x$ such that $P_1 + x > P_i$ for all $i \\neq 1$?\n\n## Constraints\n\n*   $1\\leq N \\leq 100$\n*   $1\\leq P_i \\leq 100$\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$P_1$ $P_2$ $\\dots$ $P_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc313_a","tags":[],"sample_group":[["4\n5 15 2 10","11\n\nPerson $1$ becomes the strongest when their programming skill is $16$ points or more, so the answer is $16-5=11$."],["4\n15 5 2 10","0\n\nPerson $1$ is already the strongest, so no more programming skill is needed."],["3\n100 100 100","1"]],"created_at":"2026-03-03 11:01:14"}}