結果

問題 No.3163 [Cherry 7th Tune N] Draft
ユーザー menace1x
提出日時 2025-06-06 16:59:58
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 473 bytes
コンパイル時間 2,275 ms
コンパイル使用メモリ 198,204 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-06-06 17:00:01
合計ジャッジ時間 3,263 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    int t;
    cin >> t;
    vector<int> ans(t);
    for (int i = 0; i < t; i++) {
        for (int j = 0; j < 5; j++) {
            vector<int> test(5);
            cin >> test[j];
            sort(test.begin(), test.end());
            if (j = 4) {
                ans[i] = test[j] - test[0];
            }
        } 
    }
    for (int i = 0; i < t; i++) {
        cout << ans[i] << endl;
    }
    return 0;
}
0