結果

問題 No.2706 One Nafmo
ユーザー vjudge1
提出日時 2024-05-06 23:01:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 1,258 ms
コンパイル使用メモリ 157,412 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 09:36:08
合計ジャッジ時間 1,866 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
//    freopen("test.inp","r",stdin);
//freopen("test.out","w",stdout);
    int a,b,x;
    cin >>a >>b >>x;
    bool check = false;
    if(x < a) cout <<b;
    else{
        if(x % a != 0) check = true;
        cout <<(x/a + check)*b;
    }
    
    return 0;
}
0