結果

問題 No.570 3人兄弟(その1)
ユーザー jimanojimano
提出日時 2018-01-24 20:32:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 656 bytes
コンパイル時間 4,572 ms
コンパイル使用メモリ 72,872 KB
実行使用メモリ 49,340 KB
最終ジャッジ日時 2023-08-27 02:17:15
合計ジャッジ時間 5,606 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,152 KB
testcase_01 AC 40 ms
49,280 KB
testcase_02 AC 42 ms
49,280 KB
testcase_03 AC 43 ms
49,160 KB
testcase_04 AC 43 ms
49,340 KB
testcase_05 AC 43 ms
49,220 KB
testcase_06 AC 42 ms
49,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.TreeMap;


public class No0570 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			TreeMap<Integer, String> map = new TreeMap<>();
			map.put(Integer.parseInt(br.readLine()), "A");
			map.put(Integer.parseInt(br.readLine()), "B");
			map.put(Integer.parseInt(br.readLine()), "C");

			while (map.values().size() != 0) {
				System.out.println(map.pollLastEntry().getValue());
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0