結果

問題 No.2414 2 KA 3 KA
ユーザー kusagame12kusagame12
提出日時 2023-11-25 16:24:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 519 bytes
コンパイル時間 2,492 ms
コンパイル使用メモリ 74,836 KB
実行使用メモリ 54,020 KB
最終ジャッジ日時 2023-11-25 16:24:09
合計ジャッジ時間 6,409 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
53,980 KB
testcase_01 AC 80 ms
53,956 KB
testcase_02 AC 56 ms
53,964 KB
testcase_03 AC 55 ms
54,000 KB
testcase_04 AC 55 ms
54,000 KB
testcase_05 AC 56 ms
53,980 KB
testcase_06 AC 55 ms
51,940 KB
testcase_07 AC 55 ms
54,000 KB
testcase_08 AC 55 ms
54,008 KB
testcase_09 AC 55 ms
53,992 KB
testcase_10 AC 56 ms
53,996 KB
testcase_11 AC 55 ms
54,000 KB
testcase_12 AC 55 ms
53,996 KB
testcase_13 AC 54 ms
52,048 KB
testcase_14 AC 56 ms
53,964 KB
testcase_15 AC 54 ms
54,008 KB
testcase_16 AC 56 ms
53,996 KB
testcase_17 AC 57 ms
54,004 KB
testcase_18 AC 54 ms
54,020 KB
testcase_19 AC 59 ms
54,016 KB
testcase_20 AC 55 ms
53,980 KB
testcase_21 AC 55 ms
53,972 KB
testcase_22 AC 54 ms
54,000 KB
testcase_23 AC 55 ms
53,980 KB
testcase_24 AC 56 ms
53,964 KB
testcase_25 AC 54 ms
53,980 KB
testcase_26 AC 53 ms
53,976 KB
testcase_27 AC 56 ms
53,992 KB
testcase_28 AC 54 ms
53,996 KB
testcase_29 AC 54 ms
53,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] str = br.readLine().split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);
        int c = Integer.parseInt(str[2]);
        
        int x = (a * b + a * c + b * c) * 2;
        int y = a * b * c;
        
        System.out.print(x > y ? 2 : 3);

    }

}
0