Problem:
Score : 100 points

Problem Statement

A biscuit making machine produces B biscuits at the following moments: A seconds, 2A seconds, 3A seconds and each subsequent multiple of A seconds after activation.

Find the total number of biscuits produced within T + 0.5 seconds after activation.

Constraints

All values in input are integers.

1 \leq A, B, T \leq 20

Input

Input is given from Standard Input in the following format:

A B T

Output

Print the total number of biscuits produced within T + 0.5 seconds after activation.

Sample Input 1

3 5 7

Sample Output 1

10

Five biscuits will be produced three seconds after activation.

Another five biscuits will be produced six seconds after activation.

Thus, a total of ten biscuits will be produced within 7.5 seconds after activation.

Sample Input 2

3 2 9

Sample Output 2

6

Sample Input 3

20 20 19

Sample Output 3

0

Solution in C++14 (GCC 5.4.1) (judge verdict: Accepted)

#include <bits/stdc++.h>

using namespace std;

static const int INF = 1e9 + 7;

template<typename T>
using Vec = vector<T>;

template<typename T, typename T2>
using P = pair<T, T2>;

template<typename... Args>
using Tup = tuple<Args...>;

template<typename T>
using qp = priority_queue<T, Vec<T>, greater<T> >;

template<typename T>
using pq = priority_queue<T>;

using llong = long long;
using ullong = unsigned long long;
using uint = unsigned int;

template<typename T>
T gcd(T x, T y)
{
	return y ? gcd(y, x % y) : x;
}

int n;
string str;

map<tuple<int, bool>, long long> dp;

long long dfs(int p, bool black) {
	if (p == n) return 0;
	auto status = make_tuple(p, black);
	if (dp.count(status)) return dp[status];
	if (!black) {
		if (str[p] == '#') {
			return dp[status] = min(dfs(p + 1, false) + 1, dfs(p + 1, true));
		}
		return dp[status] = dfs(p + 1, str[p] == '#');
	}
	if (str[p] == '.') {
		return dp[status] = dfs(p + 1, true) + 1;
	}
	return dp[status] = dfs(p + 1, true);
}

void hawawa()
{
	int a, b, t;
	cin >> a >> b >> t;
	cout << t / a * b << "\n";
}


int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	hawawa();
}