Submission #3819261
Source Code Expand
import sys # 関数 solve は,もちろん,問題に応じて書き換える def solve(a,b,c): f = [a,b,c] f.sort() #print(f) x = 0 y = 0 if a == b and b == c : return 0 else: x = f[1] - f[0] y = f[2] - f[1] return x+y # ここから下は,入力・出力形式が同じであれば,変えなくて良い. def readQuestion(): line = sys.stdin.readline().rstrip() [str_a, str_b, str_c] = line.split(' ') return (int(str_a), int(str_b), int(str_c)) def main(): a, b, c = readQuestion() answer = solve(a, b, c) print(answer) if __name__ == '__main__': main()
Submission Info
Submission Time | |
---|---|
Task | A - Task Scheduling Problem |
User | yun0515 |
Language | Python (3.4.3) |
Score | 100 |
Code Size | 689 Byte |
Status | AC |
Exec Time | 18 ms |
Memory | 3064 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01, sample_02, sample_03 |
All | 0_small_rand_0, 0_small_rand_1, 0_small_rand_2, 0_small_rand_3, 1_rand_0, 1_rand_1, 1_rand_2, 1_rand_3, 2_hand_0, 2_hand_1, sample_01, sample_02, sample_03 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_small_rand_0 | AC | 17 ms | 3064 KB |
0_small_rand_1 | AC | 17 ms | 3060 KB |
0_small_rand_2 | AC | 17 ms | 3064 KB |
0_small_rand_3 | AC | 17 ms | 3064 KB |
1_rand_0 | AC | 17 ms | 3064 KB |
1_rand_1 | AC | 17 ms | 3064 KB |
1_rand_2 | AC | 17 ms | 3064 KB |
1_rand_3 | AC | 18 ms | 3064 KB |
2_hand_0 | AC | 17 ms | 3064 KB |
2_hand_1 | AC | 17 ms | 3064 KB |
sample_01 | AC | 17 ms | 3064 KB |
sample_02 | AC | 17 ms | 3064 KB |
sample_03 | AC | 17 ms | 3064 KB |