結果
| 問題 | No.570 3人兄弟(その1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-20 13:38:33 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 667 bytes |
| 記録 | |
| コンパイル時間 | 3,726 ms |
| コンパイル使用メモリ | 82,200 KB |
| 実行使用メモリ | 40,012 KB |
| 最終ジャッジ日時 | 2026-05-15 04:06:45 |
| 合計ジャッジ時間 | 4,489 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}
}
}
}