結果

問題 No.383 レーティング
ユーザー chacoder1
提出日時 2020-11-29 16:49:00
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 191,136 KB
最終ジャッジ日時 2025-01-16 10:10:23
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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