Top Coder Challenge: Black Box Legacy Reimbursement System
Reverse-engineer a 60-year-old travel reimbursement system using only historical data and employee interviews.
ACME Corp’s legacy reimbursement system has been running for 60 years. No one knows how it works, but it’s still used daily.
8090 has built them a new system, but ACME Corp is confused by the differences in results. Your mission is to figure out the original business logic so we can explain why ours is different and better.
Your job: create a perfect replica of the legacy system by reverse-engineering its behavior from 1,000 historical input/output examples and employee interviews.
What You Have
Input Parameters
The system takes three inputs:
trip_duration_days- Number of days spent traveling (integer)miles_traveled- Total miles traveled (integer)total_receipts_amount- Total dollar amount of receipts (float)
Documentation
- A PRD (Product Requirements Document)
- Employee interviews with system hints
Output
- Single numeric reimbursement amount (float, rounded to 2 decimal places)
Historical Data
public_cases.json- 1,000 historical input/output examples
Getting Started
- Analyze the data:
- Look at
public_cases.jsonto understand patterns - Look at
PRD.mdto understand the business problem - Look at
INTERVIEWS.mdto understand the business logic
- Look at
- Create your implementation:
- Copy
run.sh.templatetorun.sh - Implement your calculation logic
- Make sure it outputs just the reimbursement amount
- Copy
- Test your solution:
- Run
./eval.shto see how you’re doing - Use the feedback to improve your algorithm
- Run
- Submit:
- Run
./generate_results.shto get your final results. - Add
arjun-krishna1to your repo. - Complete the submission form.
- Run
Implementation Requirements
Your run.sh script must:
- Take exactly 3 parameters:
trip_duration_days,miles_traveled,total_receipts_amount - Output a single number (the reimbursement amount)
- Run in under 5 seconds per test case
- Work without external dependencies (no network calls, databases, etc.)
Example:
./run.sh 5 250 150.75
# Should output something like: 487.25
Evaluation
Run ./eval.sh to test your solution against all 1,000 cases. The script will show:
- Exact matches: Cases within ±$0.01 of the expected output
- Close matches: Cases within ±$1.00 of the expected output
- Average error: Mean absolute difference from expected outputs
- Score: Lower is better (combines accuracy and precision)
Your submission will be tested against private_cases.json which does not include the outputs.
Submission
When you’re ready to submit:
- Push your solution to a GitHub repository
- Add
arjun-krishna1to your repository - Submit via the submission form.
- When you submit the form you will submit your
private_results.txtwhich will be used for your final score.
Good luck and Bon Voyage!
Top Coder Challenge Legacy Reimbursement System
Project Details
- GeekPO11/top-coder-challenge
- Last Updated: 6/8/2025
Recomended MCP Servers
A Model Context Protocol (MCP) server for querying the VirusTotal API.
AegnticMCP automates the creation and management of MCP servers, ensuring they are stable, adaptable, and intelligent.
Frontend testing tools for Model Context Protocol
Markdown To PDF Conversion MCP
A phone control plugin for MCP that allows you to control your Android phone through ADB commands to...
An LLM-powered, autonomous coding assistant. Also offers an MCP mode.
An MCP (Model Context Protocol) server that provides tools for interacting with Twitter using the agent-twitter-client library.





