Submission #19558880


Source Code Expand

Copy
n,t=map(int,input().split())
a=[int(input()) for _ in range(n)]
b=[]
for k in range(n-1):
  b.append(a[k+1]-a[k])
b=[k if k<=t else t for k in b]
print(sum(b)+t)

Submission Info

Submission Time
Task B - 自動ドア
User tsurumai
Language Python (3.8.2)
Score 100
Code Size 167 Byte
Status AC
Exec Time 166 ms
Memory 14488 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 50 / 50 50 / 50
Status
AC × 2
AC × 31
AC × 61
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
Subtask1 subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt, subtask1_21.txt, subtask1_22.txt, subtask1_23.txt, subtask1_24.txt, subtask1_25.txt, subtask1_26.txt, subtask1_27.txt, subtask1_28.txt, subtask1_29.txt, sample_01.txt, sample_02.txt
Subtask2 sample_01.txt, sample_02.txt, sample_23.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt, subtask1_21.txt, subtask1_22.txt, subtask1_23.txt, subtask1_24.txt, subtask1_25.txt, subtask1_26.txt, subtask1_27.txt, subtask1_28.txt, subtask1_29.txt, subtask2_01.txt, subtask2_02.txt, subtask2_03.txt, subtask2_04.txt, subtask2_05.txt, subtask2_06.txt, subtask2_07.txt, subtask2_08.txt, subtask2_09.txt, subtask2_10.txt, subtask2_11.txt, subtask2_12.txt, subtask2_13.txt, subtask2_14.txt, subtask2_15.txt, subtask2_16.txt, subtask2_17.txt, subtask2_18.txt, subtask2_19.txt, subtask2_20.txt, subtask2_21.txt, subtask2_22.txt, subtask2_23.txt, subtask2_24.txt, subtask2_25.txt, subtask2_26.txt, subtask2_27.txt, subtask2_28.txt, subtask2_29.txt
Case Name Status Exec Time Memory
sample_01.txt AC 27 ms 8824 KB
sample_02.txt AC 22 ms 9020 KB
sample_23.txt AC 23 ms 8860 KB
subtask1_01.txt AC 142 ms 13552 KB
subtask1_02.txt AC 49 ms 9568 KB
subtask1_03.txt AC 137 ms 13028 KB
subtask1_04.txt AC 77 ms 11020 KB
subtask1_05.txt AC 53 ms 9860 KB
subtask1_06.txt AC 52 ms 9764 KB
subtask1_07.txt AC 143 ms 13468 KB
subtask1_08.txt AC 130 ms 12924 KB
subtask1_09.txt AC 91 ms 11216 KB
subtask1_10.txt AC 34 ms 9188 KB
subtask1_11.txt AC 88 ms 11380 KB
subtask1_12.txt AC 141 ms 13600 KB
subtask1_13.txt AC 130 ms 13260 KB
subtask1_14.txt AC 114 ms 12256 KB
subtask1_15.txt AC 161 ms 14360 KB
subtask1_16.txt AC 161 ms 14264 KB
subtask1_17.txt AC 163 ms 14288 KB
subtask1_18.txt AC 163 ms 14360 KB
subtask1_19.txt AC 164 ms 14256 KB
subtask1_20.txt AC 159 ms 14264 KB
subtask1_21.txt AC 163 ms 14384 KB
subtask1_22.txt AC 160 ms 14460 KB
subtask1_23.txt AC 160 ms 14332 KB
subtask1_24.txt AC 160 ms 14264 KB
subtask1_25.txt AC 157 ms 14340 KB
subtask1_26.txt AC 160 ms 14404 KB
subtask1_27.txt AC 159 ms 14364 KB
subtask1_28.txt AC 164 ms 14276 KB
subtask1_29.txt AC 160 ms 14344 KB
subtask2_01.txt AC 109 ms 12392 KB
subtask2_02.txt AC 94 ms 11876 KB
subtask2_03.txt AC 95 ms 11804 KB
subtask2_04.txt AC 37 ms 9168 KB
subtask2_05.txt AC 137 ms 13472 KB
subtask2_06.txt AC 61 ms 10380 KB
subtask2_07.txt AC 93 ms 11372 KB
subtask2_08.txt AC 51 ms 9628 KB
subtask2_09.txt AC 105 ms 12084 KB
subtask2_10.txt AC 154 ms 14228 KB
subtask2_11.txt AC 77 ms 10816 KB
subtask2_12.txt AC 105 ms 12056 KB
subtask2_13.txt AC 65 ms 10512 KB
subtask2_14.txt AC 51 ms 9664 KB
subtask2_15.txt AC 163 ms 14264 KB
subtask2_16.txt AC 162 ms 14336 KB
subtask2_17.txt AC 166 ms 14252 KB
subtask2_18.txt AC 160 ms 14484 KB
subtask2_19.txt AC 160 ms 14464 KB
subtask2_20.txt AC 162 ms 14272 KB
subtask2_21.txt AC 164 ms 14356 KB
subtask2_22.txt AC 158 ms 14372 KB
subtask2_23.txt AC 160 ms 14384 KB
subtask2_24.txt AC 166 ms 14412 KB
subtask2_25.txt AC 158 ms 14264 KB
subtask2_26.txt AC 163 ms 14312 KB
subtask2_27.txt AC 162 ms 14488 KB
subtask2_28.txt AC 159 ms 14272 KB
subtask2_29.txt AC 159 ms 14344 KB