結果
| 問題 | No.383 レーティング |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-19 16:35:55 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 244 bytes |
| 記録 | |
| コンパイル時間 | 1,252 ms |
| コンパイル使用メモリ | 178,484 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-21 05:58:37 |
| 合計ジャッジ時間 | 2,337 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int a, b; cin >> a >> b;
int d = b - a;
if( d == 0 )
cout << 0 << endl;
else if( d < 0 )
cout << "-" << -d << endl;
else
cout << "+" << d << endl;
return 0;
}