Floor, Ceil and Rint - Hacker Rank Solution
This can be solved using the tools: floor, ceil and rint.
floor
ceil
rint
import numpy my_array = numpy.array(map(float, raw_input().split())) print numpy.floor(my_array) print numpy.ceil(my_array) print numpy.rint(my_array)
No comments:
Post a Comment