結果

問題 No.571 3人兄弟(その2)
ユーザー tsunabittsunabit
提出日時 2019-06-19 21:53:29
言語 Java
(openjdk 23)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 509 bytes
コンパイル時間 7,125 ms
コンパイル使用メモリ 77,064 KB
実行使用メモリ 54,328 KB
最終ジャッジ日時 2024-11-30 08:06:54
合計ジャッジ時間 7,981 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No571 {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	Map<Integer, String> m = new TreeMap<Integer, String>(Collections.reverseOrder());
    	m.put(sc.nextInt() * 1000 - sc.nextInt(), "A");
    	m.put(sc.nextInt() * 1000 - sc.nextInt(), "B");
    	m.put(sc.nextInt() * 1000 - sc.nextInt(), "C");
    	for(Integer k : m.keySet()) {
            System.out.println(m.get(k));
        }
    }
}
0