{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"有一个 $a$ 数组,里面有 $n$ 个整数。现在要从中找到两个数字(可以是同一个) $a_i,a_j$ ,使得 $a_i \\sim mod\\sim a_j$ 最大并且 $a_i\\sim \\geq \\sim a_j$ 。"}},{"title":"Input","value":{"format":"MD","content":"单组测试数据。\r\n第一行包含一个整数 $n$ ,表示数组 $a$ 的大小。 $(1 \\le n \\le 2\\times 10^5)$\r\n第二行有 $n$ 个用空格分开的整数 $ai (1 \\le ai \\le 10^6)$ 。"}},{"title":"Output","value":{"format":"MD","content":"输出一个整数代表最大的 $mod$ 值。"}},{"title":"Sample 1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\n3 4 5\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}