結果
| 問題 | No.2706 One Nafmo | 
| コンテスト | |
| ユーザー |  vjudge1 | 
| 提出日時 | 2024-05-06 23:01:12 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 325 bytes | 
| コンパイル時間 | 2,421 ms | 
| コンパイル使用メモリ | 157,460 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-29 09:35:27 | 
| 合計ジャッジ時間 | 3,273 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 2 | 
| other | AC * 4 WA * 5 | 
ソースコード
#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;
}
            
            
            
        