#1250. 【入门】钱币兑换3
【入门】钱币兑换3
Background
Special for beginners, ^_^
Description
在一个国家仅有1分,2分,3分硬币,将钱n分兑换成硬币有m种兑法。 现在给出m(不超过1e19),要使得兑换方案数不少于m,请你编程序计算出n的取值至少是多少。
Format
Input
Two integers x and y, satisfying .
Output
One integer, the sum of x and y.
Samples
2
718831
2
2934
Limitation
1s, 1024KiB for each test case.
相关
在下列比赛中: