結果

問題 No.383 レーティング
ユーザー miraissan
提出日時 2023-11-30 10:25:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 1,538 ms
コンパイル使用メモリ 165,184 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-26 13:50:02
合計ジャッジ時間 2,077 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  int a,b;
  cin >> a >> b;
  int num;
  if (a < b) {
     num = b - a;
     cout << "+" << num << endl;
  }else if (a > b){
      num = a - b;
      cout << "-" << num << endl;
  }else {
      cout << 0 << endl;
  }
}
0