結果

問題 No.965 門松列が嫌い
ユーザー takumi152
提出日時 2020-01-13 20:24:38
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 459 bytes
コンパイル時間 914 ms
コンパイル使用メモリ 88,332 KB
最終ジャッジ日時 2025-01-08 17:27:57
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#include <cstdlib>
#include <queue>

using namespace std;

typedef long long int ll;
typedef pair<int, int> Pii;

const ll mod = 1000000007;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  vector<int> a(3);
  for (auto &x: a) cin >> x;

  sort(a.begin(), a.end());

  cout << max(a[2] - a[1], a[1] - a[0]) << endl;

  return 0;
}
0