23 lines
683 B
Text
23 lines
683 B
Text
def lt(field a,field b) -> (field):
|
|
return if a < b then 1 else 0 fi
|
|
|
|
def cutoff() -> (field):
|
|
return 31337
|
|
|
|
def getThing(field index) -> (field):
|
|
field result = 3
|
|
result = if index == 0 then 13 else result fi
|
|
result = if index == 1 then 23 else result fi
|
|
result = if index == 2 then 43 else result fi
|
|
result = if index == 3 then 53 else result fi
|
|
result = if index == 4 then 73 else result fi
|
|
result = if index == 5 then 83 else result fi
|
|
return result
|
|
|
|
def cubeThing(field thing) -> (field):
|
|
return thing**3
|
|
|
|
def main(field index) -> (field):
|
|
field thing = getThing(index)
|
|
thing = cubeThing(thing)
|
|
return lt(cutoff(), thing)
|