結果

問題 No.383 レーティング
ユーザー ajiruajiru
提出日時 2020-02-05 11:07:31
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 64,316 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 06:42:50
合計ジャッジ時間 1,063 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(void) {
	int a, b;
	cin >> a >> b;
	int ans = b - a;
	if (ans > 0) cout << '+';
	else if (ans < 0) cout << '-';
	cout << ans << endl;
	return 0;
}
0