結果

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

ソースコード

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 << max(a,c)-b << endl;
    return 0;
}
0