結果

問題 No.383 レーティング
ユーザー imulan
提出日時 2016-07-13 02:54:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 451 bytes
コンパイル時間 1,532 ms
コンパイル使用メモリ 164,964 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 15:32:05
合計ジャッジ時間 1,830 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

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

typedef long long ll;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define each(itr,c) for(__typeof(c.begin()) itr=c.begin(); itr!=c.end(); ++itr)
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define fi first
#define se second

int main()
{
    int a,b;
    cin >>a >>b;

    int d=b-a;
    if(d<=0) printf("%d\n", d);
    else printf("+%d\n", d);
    return 0;
}
0