Submission #3818683


Source Code Expand

#!/usr/bin/env python3

import sys

def solve(aOne, aTwo, aThree):
    (x, y, z) = sorted([aOne, aTwo, aThree])
    print((z - y) + (y - x))

def readQuestion():
    ws = sys.stdin.readline().strip().split()
    aOne = int(ws[0])
    aTwo = int(ws[1])
    aThree = int(ws[2])
    return (aOne, aTwo, aThree,)

def main():
    solve(*readQuestion())

main()

Submission Info

Submission Time
Task A - Task Scheduling Problem
User yamate11
Language Haskell (GHC 7.10.3)
Score 0
Code Size 376 Byte
Status CE

Compile Error

Main.hs:3:8: parse error on input ‘sys’