結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | kenji_shioya |
提出日時 | 2016-06-05 17:25:50 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 465 ms / 2,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 3,393 ms |
コンパイル使用メモリ | 74,792 KB |
実行使用メモリ | 55,008 KB |
最終ジャッジ日時 | 2024-04-17 05:01:04 |
合計ジャッジ時間 | 5,166 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 118 ms
41,036 KB |
testcase_01 | AC | 125 ms
41,172 KB |
testcase_02 | AC | 465 ms
55,008 KB |
testcase_03 | AC | 409 ms
52,912 KB |
ソースコード
import java.util.*; public class Exercise62{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); String[] array = str.split(""); Arrays.sort(array, Comparator.reverseOrder()); String sortedStr = String.join("",array); System.out.println(sortedStr); } }