luogu#P7772. [COCI 2009/2010 #2] FAKTOR

    ID: 7094 远端评测题 1000ms 32MiB 尝试: 0 已通过: 0 难度: 1 上传者: 标签>模拟数学2009枚举COCI(克罗地亚)

[COCI 2009/2010 #2] FAKTOR

Background

This problem is from $\texttt{COCI 2009-2010}\ 2^\texttt{nd}\ \texttt{round}\ \text{T1 FAKTOR}$ .

The score is set according to the original problem, with a full score of 3030.

Problem Description

Given A,IA, I, find the smallest NN such that NAI\lceil\frac{N}{A}\rceil\geq I.

Input Format

One line with two integers A,IA, I.

Output Format

One line with one integer NN.

38 24
875
1 100
100
10 10
91

Hint

Constraints: 1A,I1001\leq A,I\leq 100.

Translated by ChatGPT 5