結果

問題 No.1475 時計の歯車Easy
ユーザー ManjushriMitra
提出日時 2021-04-22 20:58:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 472 bytes
コンパイル時間 1,767 ms
コンパイル使用メモリ 171,888 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-04 06:33:32
合計ジャッジ時間 2,657 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    clock_t start=clock();

    int N;
    cin>>N;

    while(N--){
        int K;
        cin>>K;
        vector<int> L(K);
        for(int i=0;i<K;++i) cin>>L[i];

        sort(L.begin(),L.end(),greater<int>());

        for(int i=0;i<K-1;++i) cout<<L[i]<<" ";
        cout<<L.back()<<endl;
    }

    clock_t end=clock();

    //cout<<1.0*(end-start)/CLOCKS_PER_SEC<<endl;

    return 0;
}
0