{"problem":{"name":"Gap Existence","description":{"content":"You are given a sequence of $N$ numbers: $A=(A_1,\\ldots,A_N)$. Determine whether there is a pair $(i,j)$ with $1\\leq i,j \\leq N$ such that $A_i-A_j=X$.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc296_c"},"statements":[{"statement_type":"Markdown","content":"You are given a sequence of $N$ numbers: $A=(A_1,\\ldots,A_N)$.\nDetermine whether there is a pair $(i,j)$ with $1\\leq i,j \\leq N$ such that $A_i-A_j=X$.\n\n## Constraints\n\n*   $2 \\leq N \\leq 2\\times 10^5$\n*   $-10^9 \\leq A_i \\leq 10^9$\n*   $-10^9 \\leq X \\leq 10^9$\n*   All values in the input are integers.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$N$ $X$\n$A_1$ $\\ldots$ $A_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc296_c","tags":[],"sample_group":[["6 5\n3 1 4 1 5 9","Yes\n\nWe have $A_6-A_3=9-4=5$."],["6 -4\n-2 -7 -1 -8 -2 -8","No\n\nThere is no pair $(i,j)$ such that $A_i-A_j=-4$."],["2 0\n141421356 17320508","Yes\n\nWe have $A_1-A_1=0$."]],"created_at":"2026-03-03 11:01:14"}}