{"problem":{"name":"Σ","description":{"content":"You are given a sequence of positive integers $A=(A_1,A_2,\\dots,A_N)$ of length $N$ and a positive integer $K$. Find the sum of the integers between $1$ and $K$, inclusive, that do not appear in the s","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc346_c"},"statements":[{"statement_type":"Markdown","content":"You are given a sequence of positive integers $A=(A_1,A_2,\\dots,A_N)$ of length $N$ and a positive integer $K$.\nFind the sum of the integers between $1$ and $K$, inclusive, that do not appear in the sequence $A$.\n\n## Constraints\n\n*   $1\\leq N \\leq 2\\times 10^5$\n*   $1\\leq K \\leq 2\\times 10^9$\n*   $1\\leq A_i \\leq 2\\times 10^9$\n*   All input values are integers.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$N$ $K$\n$A_1$ $A_2$ $\\dots$ $A_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc346_c","tags":[],"sample_group":[["4 5\n1 6 3 1","11\n\nAmong the integers between $1$ and $5$, three numbers, $2$, $4$, and $5$, do not appear in $A$.\nThus, print their sum: $2+4+5=11$."],["1 3\n346","6"],["10 158260522\n877914575 24979445 623690081 262703497 24979445 1822804784 1430302156 1161735902 923078537 1189330739","12523196466007058"]],"created_at":"2026-03-03 11:01:14"}}