結果

問題 No.965 門松列が嫌い
ユーザー yukarinoki
提出日時 2020-02-15 07:34:07
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 513 ms
コンパイル使用メモリ 57,296 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-06 13:43:22
合計ジャッジ時間 966 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
using namespace std;

int main(){
    int a,b,c; cin >> a >> b >> c;
    if(b < min(a,c)) cout << min(a,c)-b << endl;
    else cout << b-max(a,c) << endl;
    return 0;
}
0