{"code":"dethuongpair","name":"Hai phần tử dễ thương","description":"Cho một mảng gồm $n$ số nguyên  . Tìm $2$ chỉ số $i,j$ thỏa mãn $1\\le i<j\\le n$ và $a[j]-a[i]$ đạt giá trị lớn nhất. \r\n\r\n<h4>Input</h4>\r\n\r\n+ Dòng thứ nhất chứa số nguyên dương $n(2\\le n\\le 10^5)$\r\n\r\n+ Dòng thứ hai chứa $n$ số nguyên $a_i(-10^3\\le a_i\\le 10^3 \\text{ }\\forall 1\\le i\\le n)$\r\n\r\n<h4>Output</h4>\r\n\r\n+ Dòng thứ nhất chứa hai chỉ số $i,j$ thỏa mãn yêu cầu bài toán\r\n\r\n+ Dòng thứ hai in ra giá trị $a[j]-a[i]$\r\n\r\n    (Chú ý nếu có nhiều đáp án in ra đáp án bất kì).\r\n\r\n<h4>Example</h4>\r\n\r\n!!! question \"Test 1\"\r\n\r\n    ???+ \"Input\"\r\n\r\n        ```sample\r\n        3\r\n        1 2 3\r\n        ```\r\n\r\n    ???+ success \"Output\"\r\n\r\n        ```sample\r\n        1 3\r\n        2\r\n        ```","points":300.0,"partial":false,"time_limit":1.0,"memory_limit":262144,"short_circuit":false,"allowed_languages":[3,4,34,36,37,5,6,11,12,14,28,2,38,39,9,18,17,29,23,27,35,25,26,10,7,19,32,1,8,15,16,24,20,33,13,41,21,40],"is_public":true,"is_manually_managed":false,"permissions":{"can_edit":false}}