結果

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

ソースコード

diff #

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

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int T; cin >> T;
    while(T--){
        vector<int> A(5);
        for(auto &a : A) cin >> a;
        sort(A.begin(),A.end());
        cout << A.back()-A.at(0) << "\n";
    }
}
0