In this HackerRank Floor, Ceil, and Rint problem solution You are given a 1-D array, A. Your task is to print the floor, ceil, and rint of all the elements of A.

HackerRank Floor, Ceil and Rint in python problem solution

HackerRank Floor, Ceil and Rint in python problem solution

import numpy as np
S = np.array(list(map(float,input().split())))
print(np.floor(S))
print(np.ceil(S))
print(np.rint(S))