結果
| 問題 | No.965 門松列が嫌い |
| コンテスト | |
| ユーザー |
Tamego
|
| 提出日時 | 2022-07-29 21:22:39 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 387µs | |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 1,982 ms |
| コンパイル使用メモリ | 329,296 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-18 15:27:19 |
| 合計ジャッジ時間 | 3,509 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
#define rep(i,p,n)for(ll i=(ll)p;i<(ll)n;i++)
#define all(x)(x).begin(),(x).end()
#define edt(x1,y1,x2,y2)sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
int main() {
ll A,B,C;
cin>>A>>B>>C;
ll ans=min(min(abs(A-B),abs(B-C)),abs(C-A));
cout<<ans<<endl;
return 0;
}
Tamego