結果

問題 No.2706 One Nafmo
ユーザー 2475057t
提出日時 2024-07-11 07:26:37
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-11 07:26:39
合計ジャッジ時間 1,608 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.2706 One Nafmo
#include <stdio.h>

int main(void){
    
    int A, B, X;
    scanf("%d %d %d", &A, &B, &X);

    int cnt = 0;
    while(X > 0){
        X = X - A;
        cnt++;
    }
    int result = cnt * B;

    printf("%d\n", result);

    return 0;
}
0