結果

問題 No.570 3人兄弟(その1)
ユーザー Tsukasa_Type
提出日時 2018-02-09 02:53:09
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 410 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 77,120 KB
実行使用メモリ 54,300 KB
最終ジャッジ日時 2024-10-02 00:45:31
合計ジャッジ時間 3,783 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

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