結果

問題 No.570 3人兄弟(その1)
ユーザー tsunabittsunabit
提出日時 2018-07-15 02:00:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 556 bytes
コンパイル時間 3,912 ms
コンパイル使用メモリ 82,764 KB
実行使用メモリ 56,400 KB
最終ジャッジ日時 2023-08-02 23:49:42
合計ジャッジ時間 5,297 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,400 KB
testcase_01 AC 121 ms
53,576 KB
testcase_02 AC 122 ms
56,056 KB
testcase_03 AC 120 ms
56,312 KB
testcase_04 AC 121 ms
54,060 KB
testcase_05 AC 122 ms
55,788 KB
testcase_06 AC 121 ms
56,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No570 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		HashMap<Integer, String> map = new HashMap<Integer, String>();
		map.put(sc.nextInt(), "A");
		map.put(sc.nextInt(), "B");
		map.put(sc.nextInt(), "C");
		Object[] key = map.keySet().toArray();
		Arrays.sort(key, Collections.reverseOrder());
		// Arrays.sort(key);
		for(int i = 0; i <3; i++) {
			System.out.println(map.get(key[i]));
		}
	}
}
0