結果

問題 No.383 レーティング
ユーザー 一ノ瀬卯月
提出日時 2019-03-13 02:27:10
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 268 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 56,856 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-23 15:55:40
合計ジャッジ時間 988 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main()
{
	short a, b;
	string r;
	cin >> a >> b;
	if (b - a > 0)
	{
		r = "+" + to_string(b - a);
	}
	else if (b - a < 0)
	{
		r = "-" + to_string(b - a);
	}
	else r = "0";
	cout << r << endl;
	return 0;
}
0