結果

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

ソースコード

diff #

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