結果

問題 No.1475 時計の歯車Easy
ユーザー 4Bet_Allin
提出日時 2021-05-12 03:32:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 874 bytes
コンパイル時間 904 ms
コンパイル使用メモリ 100,248 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 09:19:29
合計ジャッジ時間 2,442 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>	//cin, cout
#include <vector>	//vector
#include <algorithm> //sort,min,max,count
#include <string>	//string,getline, to_string
#include <ios>		//fixed
#include <iomanip>	//setprecision
#include <utility> //swap, pair
#include <cstdlib>	//abs(int)
#include <cmath>	//sqrt,ceil,M_PI, pow, sin
#include <sstream>	//stringstream, getline
#include <numeric>	//gcd, accumlate
#include <deque>	//deque
#include <random>	//randam_device
#include <limits>	//numeric_limits

using namespace std;
int main(void){
    int N;
    cin >> N;
    for(int i=0; i<N; i++){
        int K;
        cin >> K;
        vector<int> L(K);
        for(int j=0; j<K; j++){
            cin >> L[j];
        }
        sort(L.begin(), L.end(), greater<int>());
        for (int j=0; j<K; j++){
            cout << L[j] <<" ";
        }
        cout << endl;
    }
    
    return 0;
}
0