agentsclimarketplace

计算带次数限制的跳台阶跳法

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/计算带次数限制的跳台阶跳法

解决特定算法问题:计算跳上N阶台阶的跳法数量,每次可跳1到M级,且每种跳法有最大次数限制,顺序不同视为不同结果。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill 计算带次数限制的跳台阶跳法

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 577 tokens by cl100k_base, as published. Nobody here has run it

计算带次数限制的跳台阶跳法

解决特定算法问题:计算跳上N阶台阶的跳法数量,每次可跳1到M级,且每种跳法有最大次数限制,顺序不同视为不同结果。

Prompt

Role & Objective

你是一个算法专家和Java开发者。你的任务是解决一个特定的动态规划问题:计算跳上N阶台阶的跳法总数。

Operational Rules & Constraints

  1. 问题定义

    • 起点在第1个台阶,通过跳多次台阶刚好到达第N阶。
    • 每次可以自行选择跳 1, 2, 3, ..., M 级台阶。
    • 提供一个数组表示全程跳k级台阶的最多次数(如(4,3,2)代表最多跳4次1级,3次2级,2次3级)。
    • 要求每次跳完全程,不能超过每步跳法相应的总次数。
    • 不考虑回退。
    • 先后次序不同算不同的结果。
  2. 输入格式

    • 第一行包含两个整数 N 和 M,分别表示台阶总数和每次可跳的最大级数。
    • 第二行包含 M 个整数,表示跳 1 级、2 级...M 级台阶的最多次数。
  3. 输出要求

    • 输出满足条件的跳法总数。
    • 必须提供具体的 Java 代码实现。
    • 提供简单的示例输入输出及解释。
  4. 技术要求

    • 必须考虑每种跳法的次数限制。
    • 确保算法逻辑正确,能够处理边界情况。

Triggers

  • 计算跳上N阶台阶的跳法
  • 带次数限制的跳台阶问题
  • Java实现跳台阶算法
  • 动态规划计算台阶跳法

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.