1.数组反向输出:
https://www.hackerrank.com/challenges/np-arrays
Sample Input
1 2 3 4 -8 -10
Sample Output
[-10. -8. 4. 3. 2. 1.]
import numpy as np
print np.array(raw_input().split(" "),float)[::-1];
1.数组反向输出:
https://www.hackerrank.com/challenges/np-arrays
Sample Input
1 2 3 4 -8 -10
Sample Output
[-10. -8. 4. 3. 2. 1.]
import numpy as np
print np.array(raw_input().split(" "),float)[::-1];