#abc216a. A - Signed Difficulty
A - Signed Difficulty
Score : points
问题描述
你将得到一个实数 ,其中 是一个单个数字。
请按以下规则打印结果(括号内内容仅用于清晰说明):
- 若 ,则打印 ;
- 若 ,则打印 ;
- 若 ,则打印 。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a real number , where is a single digit.
Print the following: (quotes for clarity)
- -, if ;
- , if ;
- +, if .
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
15.8
Sample Output 1
15+
Here, printing 15 +
will not be accepted: do not print a space between and +
, or between and -
.
Sample Input 2
1.0
Sample Output 2
1-
You will not get inputs such as 1.00
and 1
.
Sample Input 3
12.5
Sample Output 3
12
update @ 2024/3/10 09:34:26