結果

問題 No.1475 時計の歯車Easy
ユーザー ManjushriMitra
提出日時 2021-04-22 20:58:53
言語 C++14
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 286µs
コード長 472 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,158 ms
コンパイル使用メモリ 185,952 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-08-06 03:25:26
合計ジャッジ時間 3,149 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 42
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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