結果

問題 No.1475 時計の歯車Easy
ユーザー 👑 Nachia
提出日時 2021-04-10 18:21:01
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 415 bytes
コンパイル時間 1,233 ms
コンパイル使用メモリ 78,220 KB
最終ジャッジ日時 2025-01-20 15:51:24
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
    int N; cin>>N;
    for(int i=0; i<N; i++){
        int K; cin>>K;
        vector<int> L(K);
        for(int k=0; k<K; k++) cin>>L[k];
        sort(L.begin(),L.end(),greater<int>());
        for(int k=0; k<K; k++){
            if(k!=0) cout<<" ";
            cout<<L[k];
        }
        cout<<"\n";
    }
    return 0;
}
0