Submission #8524257
Source Code Expand
n, T = map(int, input().split()) *t, = map(int, input().split()) ans = 0 for i in range(n-1): diff = t[i+1] - t[i] ans += diff if diff <= T else T else: ans += T print(ans)
Submission Info
Submission Time | |
---|---|
Task | C - Sentou |
User | miwara |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 198 Byte |
Status | AC |
Exec Time | 133 ms |
Memory | 25196 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0, example1, example2, example3, example4 |
All | example0, example1, example2, example3, example4, maxrand0, maxrand1, maxrand2, rand0, rand1, rand2, rand3, rand4 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example0 | AC | 17 ms | 2940 KB |
example1 | AC | 17 ms | 2940 KB |
example2 | AC | 17 ms | 2940 KB |
example3 | AC | 17 ms | 2940 KB |
example4 | AC | 17 ms | 2940 KB |
maxrand0 | AC | 131 ms | 25196 KB |
maxrand1 | AC | 130 ms | 25072 KB |
maxrand2 | AC | 133 ms | 25196 KB |
rand0 | AC | 18 ms | 3060 KB |
rand1 | AC | 18 ms | 3060 KB |
rand2 | AC | 17 ms | 3060 KB |
rand3 | AC | 17 ms | 3060 KB |
rand4 | AC | 17 ms | 2940 KB |