結果
| 問題 | No.570 3人兄弟(その1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-20 13:38:33 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 2,000 ms |
| + 873µs | |
| コード長 | 667 bytes |
| 記録 | |
| コンパイル時間 | 2,550 ms |
| コンパイル使用メモリ | 86,516 KB |
| 実行使用メモリ | 43,996 KB |
| 最終ジャッジ日時 | 2026-09-27 06:13:08 |
| 合計ジャッジ時間 | 4,185 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_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");
}
}
}
}