結果

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

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;
#define rep(i, x, limit) for (int i = (int)x; i < (int)limit; i++)
#define el '\n'
#define YesNo(cond) cout << ((cond) ? "Yes" : "No") << el
#define co(N) cout << N << el
#define rall(x) x.rbegin(), x.rend()
using ll = long long;
using vi = vector<int>;
using str = string;
int main() {
    int T;
    cin >> T;
    vi H(5);
    rep(i,0,T){
        rep(i,0,5) cin >> H[i];
        sort(rall(H));
        cout << H[0] - H[4] << endl;
    }
}
0