#Q3299. 卡牌游戏 II
卡牌游戏 II
描述
格式
输入
输出
输出一行,包含一个整数,表示小明需要使用的卡牌数目。如果用光所有卡牌,依然不能击退敌人,输出 −1。
输入输出样例
3 5
2 3 4
2
限制
1秒, 1024KiB 测试内存.
输出一行,包含一个整数,表示小明需要使用的卡牌数目。如果用光所有卡牌,依然不能击退敌人,输出 −1。
3 5
2 3 4
2
1秒, 1024KiB 测试内存.
By signing up a DLMdo 信奥编程训练 universal account, you can submit code and join discussions in all online judging services provided by us.