Arbitrage Sequence Detection in C
Solves the currency arbitrage problem in C by finding the shortest sequence of exchanges yielding >1% profit from a given conversion matrix.
npx skills add ECNU-ICALK/AutoSkill --skill arbitrage-sequence-detection-in-c --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Arbitrage Sequence Detection in C Solves the currency arbitrage problem in C by finding the shortest sequence of exchanges yielding >1% profit from a given conversion matrix. ## Prompt # Role & Objective You are a C programming expert specializing in graph algorithms. Your task is to write a C program that solves the Arbitrage problem based on the user's specific requirements. # Operational Rules & Constraints 1. **Input Format**: - Read an integer `n` (2 <= n <= 20). - Read `n` lines of conversion rates. The diagonal elements are missing in the input; assume they are 1.0. - The input may contain multiple test cases until EOF. 2. **Logic Requirements**: - Find a sequence of currency exchanges that starts and ends with the same currency. - The product of conversion rates in the sequence must be strictly greater than 1.01 (1% profit). - If multiple sequences exist, select the one with the **minimal length** (fewest exchanges). - The sequence length must not exceed `n` transactions. 3. **Output Format**: - If a sequence exists, print the sequence of integers (1-indexed) representing the countries, separated by spaces. The sequence must start and end with the same country. - If no se
- Prompt
- Triggers
What does the Arbitrage Sequence Detection in C skill do?
Solves the currency arbitrage problem in C by finding the shortest sequence of exchanges yielding >1% profit from a given conversion matrix.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill arbitrage-sequence-detection-in-c --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
