結果

問題 No.2706 One Nafmo
ユーザー mkmk
提出日時 2024-03-31 13:34:02
言語 Java
(openjdk 23)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 2,192 ms
コンパイル使用メモリ 74,080 KB
実行使用メモリ 54,168 KB
最終ジャッジ日時 2024-09-30 18:04:17
合計ジャッジ時間 4,585 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

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 X = sc.nextInt();
		
		int amari = X % A;
		
		if(amari == 0) {
			System.out.println(B * (X / A));
		}else {
			System.out.println(B * (X / A + 1));
		}
		


	}
}
0