Submission #10316650
Source Code Expand
def main(): people_num, emit_time = map(int, input().split()) times = list(map(int, input().split())) answer = 0 for i in range(1, people_num): if times[i] - times[i - 1] > emit_time: answer += emit_time else: answer += times[i] - times[i - 1] answer += emit_time print(answer) if __name__ == '__main__': main()
Submission Info
Submission Time | |
---|---|
Task | C - Sentou |
User | Azumabashi |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 399 Byte |
Status | AC |
Exec Time | 119 ms |
Memory | 26704 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 | 119 ms | 25196 KB |
maxrand1 | AC | 118 ms | 26704 KB |
maxrand2 | AC | 115 ms | 25196 KB |
rand0 | AC | 17 ms | 3060 KB |
rand1 | AC | 17 ms | 3060 KB |
rand2 | AC | 17 ms | 3060 KB |
rand3 | AC | 17 ms | 3060 KB |
rand4 | AC | 17 ms | 2940 KB |