abs


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type
Allowed languages
Java 19, Java 8

Description

輸入數個整數,當輸入0時結束輸入,輸出他們的絕對值。

Sample input & output

Input #1
1 -1 2 -2 0
Output #1
1 1 2 2
Input #2
-5 -4 -3 -2 -1 0
Output #2
5 4 3 2 1

Comments

There are no comments at the moment.