-
Notifications
You must be signed in to change notification settings - Fork 2
faktor
bradendubois edited this page Jun 9, 2021
·
6 revisions
ID: faktor
Difficulty: 1.3
CPU Time: 1 second
Memory: 1024 MB
Receiving A and I, we want to find x, such that ceiling(x/A) = I, where x is as low as possible. Since the value is always rounded up, we can calculate A * I - 1, and add 1, since we calculate the "impact factor" one lower, and add a single scientist to it, which will result in the impact factor specified.