結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int t;
    cin >> t;
    for (int i = 0; i < t; i++) {
        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;
    }
    return 0;
}
0