{
 "problem_id": "TOYO-E0001-Q03-S01",
 "transcript": {
  "text": "整数Aに対して、《A》を「Aの各位の数を加えた数」と約束します。例えば、《201》＝2＋0＋1＝3となります。このとき、次の各問いに答えなさい。\n(1) 3けたの整数Bに対して、《B》＝5となりました。整数Bとして当てはまるものは全部で何通りありますか。",
  "status": "agent_visual_confirmed",
  "notes": null
 },
 "depends_on": [],
 "solution": {
  "final_answer": "15通り",
  "unit": null,
  "first_insight": "百の位は 1 以上、十の位・一の位は 0 以上で、3 つの和が 5。百の位で場合分けすると『残り 2 つの位の和』が決まり、組の数は (和＋1) 通り。",
  "insight_basis": "2 つの位の和が k のとき (0〜k の k＋1 通り)。百の位だけ 0 が使えないことに注意。",
  "steps": [
   "百の位 a は 1 以上、十の位 b と一の位 c は 0 以上で a＋b＋c＝5",
   "百の位で場合分け: a＝1 → b＋c＝4 (b＝0〜4 の 5 通り)、a＝2 → b＋c＝3 (4 通り)、a＝3 → 3 通り、a＝4 → 2 通り、a＝5 → 1 通り",
   "5＋4＋3＋2＋1＝15 (通り)"
  ],
  "why": "各位の数の和が一定の整数は、最高位 (0 不可) で場合分けして残りの位の組を数えるのが確実。2 つの位の和が k なら k＋1 通り。",
  "check": "書き出し: 104、113、122、131、140／203、212、221、230／302、311、320／401、410／500 → 15 個 ✓。(教師用) 百の位に 1 を先に置き、残り 4 を 3 つの位に分ける重複組合せ 6C2＝15。",
  "common_errors": [
   {
    "error": "百の位 0 も数えて 21 通りとする",
    "where": "1手目",
    "detect": "3 けたの整数なので百の位は 1 以上"
   },
   {
    "error": "十の位・一の位の 0 を忘れて b＋c＝4 を 3 通りとする",
    "where": "2手目",
    "detect": "(0,4) と (4,0) も含めて 5 通り"
   },
   {
    "error": "『5 を 3 つに分ける分け方』(順番を区別しない) で 5 通りと答える",
    "where": "発想",
    "detect": "123 と 321 は別の整数。位ごとに区別する"
   }
  ],
  "minimal_points": [
   "最高位は 0 不可",
   "最高位で場合分け → 残り 2 位の和 k は k＋1 通り",
   "5＋4＋3＋2＋1"
  ],
  "related": []
 },
 "hints": [
  "百の位は 0 にできない。十の位と一の位は 0 でもよい",
  "百の位の数で場合分けし、残り 2 つの位の数の和がいくつになるかを考える",
  "残り 2 つの位の和が決まれば、その組の数は『和＋1』通り"
 ],
 "analysis": {
  "primary_field": "場合の数",
  "secondary_fields": [
   "数の性質"
  ],
  "cores": [
   "場合分け (最高位)",
   "和が一定の 2 数の組の数え方"
  ],
  "prerequisites": [
   "位ごとの数字の区別",
   "表による数え上げ"
  ],
  "insight_triggers": "",
  "core_explanation": "",
  "barrier": "場合分け",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "A",
  "difficulty_basis": "",
  "difficulty_scale": "典型問題の知識をそのまま使える (1〜2段階)",
  "est_minutes": 3,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "場合分けの漏れ",
   "条件の読み落とし"
  ],
  "prereq_weight": 0
 },
 "teacher": {
  "background": "教師用: 重複組合せ。a'＋b＋c＝4 (a'＝a−1≧0) の非負整数解は 6C2＝15。塾解説はこの『○と仕切り』で説明している。",
  "alternatives": "",
  "intent_estimate": "(2) の準備となる基本の数え上げ。最高位の 0 の扱いと、漏れなく数える習慣を見る問題と推定。",
  "confidence": "高"
 },
 "lecture_notes": "塾解説 (kakomon_v-tg-toshima18_3-1): 百の位に先に玉を 1 個置き、残り 4 個を 3 つの位に分配する重複組合せ (○と仕切り、6C2＝15)。問題文の転記は原本と一致。本カードの主解法は小学生向けに最高位で場合分けする方法とし、○と仕切りは background に記載。",
 "teaching_notes_refs": [
  {
   "page": 55,
   "principle": "りんごの分け方 (仕切りで分ける)"
  },
  {
   "page": 54,
   "principle": "カードならべ (場合分け)"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T11:02:58+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "238593574d11dffd9b8e72bb205ea960fb2d53ff4cd7f274e97f12351ab66db2",
 "verification": {
  "checks": {
   "source_mapping_confirmed": true,
   "crop_visually_checked": true,
   "shared_context_confirmed": true,
   "answer_consistency_checked": true,
   "independent_verification_passed": true,
   "no_unresolved_conflicts": true,
   "explanation_reproducible": true,
   "no_answer_leak_on_front": true
  },
  "methods": [
   {
    "method": "100〜999 を全探索して各位の和が 5 の整数を数える",
    "result": "計算値 15 / 期待値 15 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '15通り' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0001.py",
  "verified_at": "2026-10-23T00:19:51+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "15通り",
  "computed": "15",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}