結果

問題 No.3163 [Cherry 7th Tune N] Draft
ユーザー Naru820
提出日時 2025-05-30 23:30:15
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 3,264 ms
コンパイル使用メモリ 274,524 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-05-30 23:30:20
合計ジャッジ時間 4,239 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr ll inf = 2e18;
constexpr ll mod = 998244353;

int t,a[5];
int main(){
    cin >> t;
    while(t--){
        cin >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];
        sort(a, a + 5);
        cout << a[4] - a[0] << endl;
    }
}
0