結果

問題 No.570 3人兄弟(その1)
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-09 02:53:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 410 bytes
コンパイル時間 2,326 ms
コンパイル使用メモリ 76,580 KB
実行使用メモリ 54,416 KB
最終ジャッジ日時 2024-04-09 23:48:42
合計ジャッジ時間 4,061 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
54,416 KB
testcase_01 AC 141 ms
54,300 KB
testcase_02 AC 142 ms
54,316 KB
testcase_03 AC 138 ms
53,960 KB
testcase_04 AC 142 ms
54,020 KB
testcase_05 AC 143 ms
54,180 KB
testcase_06 AC 139 ms
54,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		Map<Integer,String> map = new HashMap<>();
		map.put(sc.nextInt(),"A");
		map.put(sc.nextInt(),"B");
		map.put(sc.nextInt(),"C");
		Object[] mapkey = map.keySet().toArray();
		Arrays.sort(mapkey);
		
		for (int i=2; i>=0; i--) {
			System.out.println(map.get(mapkey[i]));
		}
	}
}
0