結果

問題 No.2706 One Nafmo
ユーザー 伊藤遼
提出日時 2024-11-01 20:17:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 537 bytes
コンパイル時間 3,513 ms
コンパイル使用メモリ 153,628 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-01 20:18:15
合計ジャッジ時間 3,973 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <math.h>
#include <queue>
#include <numeric>
#include <map>
#include <atcoder/all>
using namespace atcoder;
using namespace std;

using ll = long long;

#define Sort(a) sort((a).begin(), (a).end())
#define Rev(a) reverse((a).begin(), (a).end())
#define cfs(a) cout << fixed << setprecision(a)

int main()
{
    ll A, B, X;
    cin >> A >> B >> X;
    ll ans =  B * (X / A);
    if (X % A != 0)
    {
        ans += B;
    }
    cout << ans << endl;
}
0