結果

問題 No.2621 Fee Schedule
ユーザー sysnote8mainsysnote8main
提出日時 2024-04-11 22:25:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 2,068 ms
コンパイル使用メモリ 73,984 KB
実行使用メモリ 54,128 KB
最終ジャッジ日時 2024-04-11 22:25:40
合計ジャッジ時間 4,752 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
52,972 KB
testcase_01 AC 95 ms
52,992 KB
testcase_02 AC 107 ms
53,960 KB
testcase_03 AC 107 ms
53,984 KB
testcase_04 AC 105 ms
53,828 KB
testcase_05 AC 118 ms
53,864 KB
testcase_06 AC 150 ms
53,964 KB
testcase_07 AC 105 ms
52,692 KB
testcase_08 AC 101 ms
53,624 KB
testcase_09 AC 106 ms
54,096 KB
testcase_10 AC 96 ms
52,952 KB
testcase_11 AC 105 ms
54,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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();
        System.out.println(Math.min(b, a*c));
    }
}
0