結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
![]() |
提出日時 | 2017-10-22 18:12:03 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 2,000 ms |
コード長 | 429 bytes |
コンパイル時間 | 3,091 ms |
コンパイル使用メモリ | 75,060 KB |
実行使用メモリ | 50,180 KB |
最終ジャッジ日時 | 2024-11-21 13:49:54 |
合計ジャッジ時間 | 3,634 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int[] h = {a, b, c}; Arrays.sort(h); for(int i = 2; i >= 0; i--) { if(h[i] == a) System.out.println("A"); if(h[i] == b) System.out.println("B"); if(h[i] == c) System.out.println("C"); } } }