← ClaudeAtlas

solve-skeletonlisted

Bare-bones Python solve() skeletons for AI Lab campus recruitment exam OJ problems. Use when the user asks for a solve() template, coding framework, OJ scaffold, or any of these Chinese trigger phrases: "解题框架", "解题模板", "solve骨架", "OJ模板", "ACM框架", "编程题结构", "solve()模板", "输入输出框架", "算法骨架", "解题规范", "代码模板", "框架代码", "答题模板", "刷题框架", "算法框架". Also use before starting any OJ problem implementation to provide the correct skeleton for the algorithm type. After the user fills in the TODOs, direct them to the `algo-annotation` skill for adding Chinese line-level comments. This skill provides structure only — no logic, no comments. For complete solutions, use `algorithms/python_oj_template.py` directly instead.
Tenstu/Pass-LLM-with-LLM · ★ 4 · AI & Automation · score 77
Install: claude install-skill Tenstu/Pass-LLM-with-LLM
# Solve Skeleton Skill Bare-bones Python solve() skeletons for ACM/OJ problems. No logic inside — only structure, I/O plumbing, and TODO markers. After filling TODOs, use the `algo-annotation` skill to add Chinese comments and `# [防错]` markers. ## 1. Core Convention ### I/O ```python input = sys.stdin.readline n = int(input()) nums = list(map(int, input().split())) ``` For strings: `s = input().strip()`. For output: `print(ans)` or `print("\n".join(out))`. **Never** use `sys.stdin.buffer`, `iter(data) + next(it)`, or `.buffer.read().split()`. ### Stage Separator Five dashes, 58 equal signs. No trailing content. ``` # ============================================================ ``` ### 5-Phase Structure Every solve() follows this layout: ``` def solve(): """Input format: ... Output format: ... """ input = sys.stdin.readline # ============================================================ # Preprocess # ============================================================ # ============================================================ # Algorithm # ============================================================ # ============================================================ # Output # ============================================================ if __name__ == "__main__": solve() ``` The docstring must state input and output format — this is the contract with the grader. ## 2. Anti-Pattern Checklist Never do these when wr