Submission #1775050
Source Code Expand
num = int(input()) house = [int(x) for x in input().split()] house = sorted(house) res = 0 for i in range(0, len(house)-1): res += (house[i+1] -house[i]) print(res)
Submission Info
Submission Time | |
---|---|
Task | B - Traveling AtCoDeer Problem |
User | T_M |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 176 Byte |
Status | AC |
Exec Time | 18 ms |
Memory | 3060 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | s1.txt, s2.txt |
All | in1.txt, in2.txt, in3.txt, in4.txt, s1.txt, s2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
in1.txt | AC | 18 ms | 3060 KB |
in2.txt | AC | 18 ms | 2940 KB |
in3.txt | AC | 18 ms | 2940 KB |
in4.txt | AC | 18 ms | 2940 KB |
s1.txt | AC | 18 ms | 2940 KB |
s2.txt | AC | 18 ms | 2940 KB |