結果

問題 No.965 門松列が嫌い
ユーザー LuckyHappy0108LuckyHappy0108
提出日時 2020-04-26 20:36:01
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 368 bytes
コンパイル時間 1,381 ms
コンパイル使用メモリ 163,344 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-11 14:49:27
合計ジャッジ時間 2,348 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 1 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

  #include <bits/stdc++.h>
   using namespace std;
   using pii = pair<int, int>;
   using ll = long long;
   #define rep(i, j, n) for(int i = j; i < (int)(n); i++)
   const ll MOD = 1000000007;
   const ll INFL = (1LL << 60);
   const int INFI = (1 << 30);

   int main() {
     int A, B, C; cin >> A >> B >> C;
     cout << min(abs(B - A), abs(B - C)) << endl;
   }
0