結果

問題 No.2706 One Nafmo
ユーザー sysnote8mainsysnote8main
提出日時 2024-04-11 21:49:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 2,290 ms
コンパイル使用メモリ 79,348 KB
実行使用メモリ 55,968 KB
最終ジャッジ日時 2024-04-11 21:49:22
合計ジャッジ時間 5,361 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,132 KB
testcase_01 AC 127 ms
54,300 KB
testcase_02 AC 128 ms
54,128 KB
testcase_03 AC 131 ms
54,160 KB
testcase_04 AC 131 ms
54,172 KB
testcase_05 AC 127 ms
53,960 KB
testcase_06 AC 128 ms
54,196 KB
testcase_07 AC 128 ms
54,032 KB
testcase_08 AC 130 ms
53,980 KB
testcase_09 AC 132 ms
54,080 KB
testcase_10 AC 124 ms
53,652 KB
testcase_11 AC 135 ms
53,996 KB
testcase_12 AC 130 ms
55,968 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(), b = sc.nextInt(), x = sc.nextInt();
        System.out.println((int) Math.ceil((double) x /a) * b);
    }
}
0