結果

問題 No.2706 One Nafmo
ユーザー vjudge1
提出日時 2024-04-21 22:00:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 365 bytes
コンパイル時間 5,669 ms
コンパイル使用メモリ 189,876 KB
最終ジャッジ日時 2025-02-21 08:27:17
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main()
{
    //freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
    int A,B,X;
    cin >> A >> B >> X;
    if (X < A)
        cout << B << " " ;
    else
    {
        if (X % A == 0)
            cout << B * (X / A) ;
        else
            cout << B * (X / A + 1) ;
    }
    return 0;

}
0