結果

問題 No.965 門松列が嫌い
ユーザー kotorigasatori1
提出日時 2020-01-17 18:43:34
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 755 ms
コンパイル使用メモリ 68,000 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-25 15:56:01
合計ジャッジ時間 1,318 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include<math.h>
using namespace std;

int main()
{
long long int b;
long long int ac[2];
cin >> ac[0] >> b >> ac[1];
long long int ans = min(abs(ac[0] - b),abs(ac[1] -b));
cout << ans;
   return 0;
}
0