結果

問題 No.2706 One Nafmo
ユーザー vjudge1vjudge1
提出日時 2024-04-20 23:28:55
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,250 bytes
コンパイル時間 3,327 ms
コンパイル使用メモリ 161,408 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-20 23:29:01
合計ジャッジ時間 2,125 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 2 ms
5,376 KB
testcase_12 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define taskname ""
#define ull unsigned long long
#define ll long long
#define db double
#define ld long double
#define fi first
#define se second
#define pii pair<int, int>
#define vii vector<pii>
#define pll pair<ll, ll>
#define vll vector<vll>
#define all(a) (a).begin(), (a).end()
#define foru(i, a, b, k) for(int i = a; i <= b; i+=k)
#define ford(i, a, b, k) for(int i = a; i >= b; i-=k)
#define FOR(i, a, b) for(int i = a; i <= b; i++)
#define pb push_back
#define sz(s) (int)s.size()
#define ctn continue
#define uset unordered_set
#define umap unordered_map
#define TIME (1.0 * clock() / CLOCKS_PER_SEC)
#define endl "\n"

using namespace std;

const int maxn = (int) 1e8 + 10;
const int MOD = (int) 1e9 + 7;
const int MAXN = (int) 1e3 + 10;
const int INF = (int) 2e9;
const ll LLINF = (ll) 2e18;

// chon ra 3 so trong mang


void solve() {
    ll a, b, x;
     cin >> a >> b >> x;
     if (x % a == 0) {
        cout << 1LL * b * (x/a);
     } else cout << 1LL * b * (x/a+1);
}




int main() {
	 // freopen("test.inp", "r", stdin);
    //freopen("test.ans", "w", stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    solve();

	cerr << "Time elapsed: " << TIME << " s.\n";
    return (0 ^ 0);

}
0