結果

問題 No.2706 One Nafmo
ユーザー Manato UdagawaManato Udagawa
提出日時 2024-03-31 13:36:59
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 1,638 ms
コンパイル使用メモリ 166,464 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-09-30 18:09:12
合計ジャッジ時間 1,995 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(){
    int A, B, X;
    cin >> A >> B >> X;
    int ans = 0, nafmo=0;
    while(nafmo*A<X){
        nafmo++;
    }
    ans = nafmo * B;
    cout << ans;
}
0