結果

問題 No.1475 時計の歯車Easy
ユーザー kkkk97368086kkkk97368086
提出日時 2021-11-23 10:56:08
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 388 bytes
コンパイル時間 1,702 ms
コンパイル使用メモリ 169,792 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-07 12:51:25
合計ジャッジ時間 5,787 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 RE -
testcase_03 WA -
testcase_04 RE -
testcase_05 WA -
testcase_06 RE -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 RE -
testcase_17 WA -
testcase_18 RE -
testcase_19 WA -
testcase_20 RE -
testcase_21 WA -
testcase_22 WA -
testcase_23 RE -
testcase_24 AC 2 ms
4,380 KB
testcase_25 AC 2 ms
4,376 KB
testcase_26 RE -
testcase_27 WA -
testcase_28 AC 1 ms
4,380 KB
testcase_29 RE -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 RE -
testcase_34 WA -
testcase_35 RE -
testcase_36 RE -
testcase_37 WA -
testcase_38 RE -
testcase_39 WA -
testcase_40 RE -
testcase_41 RE -
testcase_42 WA -
testcase_43 RE -
testcase_44 AC 2 ms
4,380 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    int n;
    cin >> n;
    for(int i=0; i<n; i++){
        int l;
        cin >> l;
        vector<int> k(n);
        for(int i=0; i<l; i++){
            cin >> k[i];
        }
        sort(k.begin(),k.end());
        reverse(k.begin(), k.end());
        for(int i=0; i<l; i++) cout << k[i] << " ";
        printf("\n");
    }
}
0