結果

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main()
{
    int a,b,x,ans;
    cin>>a>>b>>x;
    ans=b*(x/a);
    if(x%a>0) ans+=b;
    cout<<ans<<endl;
    return 0;
}
0