結果

問題 No.1475 時計の歯車Easy
ユーザー yule10s
提出日時 2021-04-17 15:27:56
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 781 bytes
コンパイル時間 2,427 ms
コンパイル使用メモリ 77,100 KB
実行使用メモリ 56,448 KB
最終ジャッジ日時 2024-07-03 23:04:33
合計ジャッジ時間 11,289 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other WA * 42
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        // System.out.println("n = "+ n);
        for (int i = 0; i < n ; i++) {
            int k = sc.nextInt();
            ArrayList<Integer> parts = new ArrayList<Integer>();
            for (int j = 0; j < k; j++) {
                parts.add(sc.nextInt());
            }
            Collections.sort(parts);
            Collections.reverse(parts);
            int[] tmp = new int[parts.size()];
            parts.toArray();
            for (int value : parts) {
                System.out.print(value);
            }
            System.out.print("\n");
        }
    }
}
0