結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
	int ttt;
	cin>>ttt;
	while(ttt--){
		int n=5;
		vector<int> a(n);
		for(int i=0;i<n;i++)cin>>a[i];
		sort(a.begin(),a.end());
		cout<<a[4]-a[0]<<endl;
	}
	return 0;
	
}
0