結果
| 問題 | No.2706 One Nafmo | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-04-09 14:47:58 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 486 bytes | 
| コンパイル時間 | 2,163 ms | 
| コンパイル使用メモリ | 192,032 KB | 
| 最終ジャッジ日時 | 2025-02-20 23:21:49 | 
| ジャッジサーバーID (参考情報) | judge2 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 9 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<n; i++)
#define debug 0
#define YES cout << "Yes" << endl;
#define NO cout << "No" << endl;
using ll = long long;
using ld = long double;
const int mod = 998244353;
const int MOD = 1000000007;
const double pi = atan2(0, -1);
#include <time.h>
#include <chrono>
int main() {
	int a, b, x;
	cin >> a >> b >> x;
	int ans = 0;
	int now = 0;
	while (now < x) {
		ans += b;
		now += a;
	}
	cout << ans << endl;
}
            
            
            
        