結果
| 問題 |
No.965 門松列が嫌い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-01-14 01:17:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 871 ms |
| コンパイル使用メモリ | 93,636 KB |
| 最終ジャッジ日時 | 2025-01-08 17:52:34 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <math.h>
using namespace std;
typedef long long int ll;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
int a,b,c; cin >> a >> b >> c;
cout << min({abs(a-b),abs(b-c),abs(a-c)}) << endl;
}