LanQiaoTestCodes/卡牌.java

19 lines
510 B
Java
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package LanQiaoOJ;
public class 卡牌 {
/*题目描述
小蓝有很多数字卡片每张卡片上都是数字0到9。
小蓝准备用这些卡片来拼一些数他想从1开始拼出正整数每拼一个就保存起来卡片就不能用来拼其它数了。
小蓝想知道自己能从1拼到多少。
例如当小蓝有30张卡片其中0到9各3张则小蓝可以拼出1到10
但是拼11时卡片1已经只有一张了不够拼出11。
现在小蓝手里有0到9的卡片各2021张共20210张
问小蓝可以从1拼到多少
提示:建议使用计算机编程解决问题。*/
public static void main(String[] args) {
}
}