結果
問題 |
No.570 3人兄弟(その1)
|
ユーザー |
|
提出日時 | 2021-03-20 13:38:33 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 667 bytes |
コンパイル時間 | 3,366 ms |
コンパイル使用メモリ | 75,040 KB |
実行使用メモリ | 50,520 KB |
最終ジャッジ日時 | 2024-11-20 22:46:59 |
合計ジャッジ時間 | 4,278 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class No00000570_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { int a = Integer.parseInt(br.readLine()); int b = Integer.parseInt(br.readLine()); int c = Integer.parseInt(br.readLine()); int[] t = {a, b, c}; Arrays.sort(t); for(int i = 2; 0 <= i; i--) { if(t[i] == a) { System.out.println("A"); } else if(t[i] == b) { System.out.println("B"); } else if (t[i] == c) { System.out.println("C"); } } } }