問題一覧 > 通常問題

No.383 Rating

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 689
作問者 : mayoko_
お気に入りにしたユーザー ProblemId : 683 / 自分の提出
問題文最終更新日: 2026-06-25 12:47:09
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 140 (順位表) の他の問題:

Problem Statement


In a certain programming contest, A's rating changed from $a$ to $b$. To tweet about this rating change, A often uses the notation

$a$ → $b$($s$)

Here, $s$ is a string determined as follows.
・If the rating did not change, "0"
・If the rating increased, the character "+" followed by the amount of the rating change
・If the rating decreased, the character "-" followed by the amount of the rating change

A is bad at subtraction and often gets $s$ wrong. Work out $s$ on behalf of A.

Input

$a$ $b$


The first line contains A's rating before the contest $a$ and rating after the contest $b$.
0 ≤ $a$, $b$ < 4000

Output


Output the string representing the rating change.
Print a newline at the end.

Sample

Sample 1
Input
1200 1350
Output
+150


When the rating increases, do not forget the "+".

Sample 2
Input
1350 1200
Output
-150


The rating can also decrease. Alas.

Sample 3
Input
1500 1500
Output
0


The rating may also stay unchanged. In this case, write neither "+" nor "-".

Sample 4
Input
2179 2218
Output
+39


Congratulations on becoming a red coder.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。