Submission #40456502
Source Code Expand
from collections import defaultdict from heapq import heappush, heappop import sys, math,itertools #f=open('/content/gdrive/MyDrive/a.txt','r') f=sys.stdin arr,ff= lambda : list(map(int,f.readline().split())), lambda : f.readline() n1,n2= lambda : int ( f.readline() ) ,lambda: map(int,f.readline().split()) n,d=n2() a=arr() ans = -1 for i in range ( 1, n ) : if a[i] - a[i-1] <= d : ans = a[i] break print ( ans)
Submission Info
Submission Time | |
---|---|
Task | A - Double Click |
User | djson |
Language | PyPy3 (7.3.0) |
Score | 100 |
Code Size | 441 Byte |
Status | AC |
Exec Time | 86 ms |
Memory | 65176 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_00.txt, example_01.txt, example_02.txt |
All | example_00.txt, example_01.txt, example_02.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_00.txt | AC | 86 ms | 64836 KiB |
example_01.txt | AC | 57 ms | 65004 KiB |
example_02.txt | AC | 55 ms | 65096 KiB |
test_00.txt | AC | 56 ms | 64924 KiB |
test_01.txt | AC | 58 ms | 65104 KiB |
test_02.txt | AC | 55 ms | 64984 KiB |
test_03.txt | AC | 53 ms | 65044 KiB |
test_04.txt | AC | 58 ms | 65132 KiB |
test_05.txt | AC | 57 ms | 65088 KiB |
test_06.txt | AC | 58 ms | 65148 KiB |
test_07.txt | AC | 52 ms | 65008 KiB |
test_08.txt | AC | 54 ms | 64952 KiB |
test_09.txt | AC | 58 ms | 65176 KiB |
test_10.txt | AC | 55 ms | 64912 KiB |
test_11.txt | AC | 56 ms | 64924 KiB |