結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
![]() |
提出日時 | 2018-06-02 22:41:05 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 134 ms / 2,000 ms |
コード長 | 482 bytes |
コンパイル時間 | 2,228 ms |
コンパイル使用メモリ | 77,676 KB |
実行使用メモリ | 41,504 KB |
最終ジャッジ日時 | 2024-06-30 09:09:22 |
合計ジャッジ時間 | 3,759 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
import java.util.*;class Main {public static void main(String[] args) {Scanner in = new Scanner(System.in);int[] h = new int[3];for(int i=0; i<3; i++)h[i] = in.nextInt();Map<Integer, String> map = new HashMap<>();map.put(h[0], "A");map.put(h[1], "B");map.put(h[2], "C");Arrays.sort(h);for(int i=0; i<3; i++) {System.out.println(map.get(h[2-i]));}}}