結果
| 問題 |
No.3163 [Cherry 7th Tune N] Draft
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-11 14:19:05 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 653 bytes |
| コンパイル時間 | 3,115 ms |
| コンパイル使用メモリ | 275,112 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-07-11 14:19:09 |
| 合計ジャッジ時間 | 4,115 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 |
ソースコード
#ifndef ONLINE_JUDGE
#define _GLIBCXX_DEBUG // []で配列外参照をするとエラーにしてくれる。上下のやつがないとTLEになるので注意
#endif
#include <bits/stdc++.h>
using namespace std;
// #include <atcoder/all>
// using namespace atcoder;
// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
using ll = long long;
using Graph = vector<vector<int>>;
ll INF = 2e18 + 1;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T;
cin >> T;
for (;T--;){
int a, b, c, d, e;
cin >> a >> b >> c >> d >> e;
cout << (max({a, b, c, d, e}) - min({a, b, c, d, e})) << endl;
}
}