{
 "problem_id": "TOYO-E0015-Q03-S02",
 "transcript": {
  "text": "ある工場では、材料Aを10gと材料Bを20g使って商品（あ）を1個作り、材料Aを15gと材料Bを15g使って商品（い）を1個作っています。このとき、次の各問いに答えなさい。\n(2) 材料Aを580g、材料Bを650g用意し、個数の合計が(1)の場合と同じになるように商品（あ）と商品（い）を作りました。このとき、商品（あ）と商品（い）の個数の組み合わせとして考えられるものは、全部で何通りありますか。ただし、材料はすべて使わなくてもよいものとします。",
  "status": "agent_visual_confirmed",
  "notes": null
 },
 "depends_on": [
  {
   "problem_id": "TOYO-E0015-Q03-S01",
   "label": "個数の合計 10 + 30 = 40 個"
  }
 ],
 "solution": {
  "final_answer": "7通り",
  "unit": null,
  "first_insight": "合計 40 個 ((1) より 10 + 30) を固定し、(い) を (あ) に 1 個かえるごとに材料 A の使用量が 5g 減り、B が 5g 増えることを使う。A・B がどちらも用意した量以下になる (あ) の個数の範囲を求める。",
  "insight_basis": "全部 (い) なら A = B = 15 × 40 = 600g。(あ) 1 個は (い) 1 個に比べて A が 5g 少なく B が 5g 多いので、使用量は (あ) の個数で 1 次的に変わる。",
  "steps": [
   "合計は (1) と同じ 10 + 30 = 40 個",
   "全部 (い) 40 個なら A = 600g、B = 600g",
   "(い) 1 個を (あ) にかえると A は 15 → 10 で 5g 減り、B は 15 → 20 で 5g 増える",
   "A: 600 − 5×(あ) ≤ 580 → (あ) ≥ 4。B: 600 + 5×(あ) ≤ 650 → (あ) ≤ 10",
   "(あ) = 4, 5, …, 10 の 10 − 4 + 1 = 7 通り ((い) は 36 〜 30 個)"
  ],
  "why": "『材料はすべて使わなくてもよい』ので条件は等式でなく『以下』の不等式。合計が固定されているので未知数は (あ) の個数 1 つになり、範囲を数えればよい。",
  "check": "(あ) 4 個: A = 560 ≤ 580、B = 620 ≤ 650 ✓。(あ) 10 個: A = 530、B = 650 ✓。(あ) 3 個: A = 585 > 580 ✗。(あ) 11 個: B = 655 > 650 ✗。",
  "common_errors": [
   {
    "error": "『すべて使わなくてもよい』を見落として等式で解き、0 通りや 1 通りとする",
    "where": "読解",
    "detect": "条件は『用意した量以下』"
   },
   {
    "error": "不等号の向きを逆にする (A は 600 から減る方向)",
    "where": "4手目",
    "detect": "(あ) を増やすと A は減り B は増える"
   },
   {
    "error": "4 から 10 の個数を 10 − 4 = 6 とする",
    "where": "5手目",
    "detect": "両端を含めるので +1"
   }
  ],
  "minimal_points": [
   "合計 40 個を固定 ((1) の結果)",
   "(い)→(あ) 1 個で A は −5g、B は +5g",
   "A・B それぞれの『以下』の条件 → 範囲を数える (両端含む)"
  ],
  "related": []
 },
 "hints": [
  "合計の個数は (1) で分かっている。(い) を (あ) に 1 個かえると材料 A・B の使用量はそれぞれ何 g 変わるか",
  "材料は余ってもよいので、A も B も用意した量『以下』になる範囲を求める",
  "両方の条件を満たす (あ) の個数の範囲を数える (両端を含める)"
 ],
 "analysis": {
  "primary_field": "文章題",
  "secondary_fields": [
   "数の性質"
  ],
  "cores": [
   "1 個かえたときの変化量",
   "不等式の範囲の数え上げ"
  ],
  "prerequisites": [
   "つるかめ算 (かえると差がいくつ変わるか)",
   "以上・以下の数え方"
  ],
  "insight_triggers": "『すべて使わなくてもよい』→ 以下の条件 → 範囲",
  "core_explanation": "",
  "barrier": "読解・条件整理",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "B",
  "difficulty_basis": "(1) の結果を使い、不等式 2 本の範囲を数える。等式でないことに気づく読解が要る",
  "difficulty_scale": "典型解法を組み合わせる・条件整理が必要 (3〜4段階)",
  "est_minutes": 4,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "条件の読み落とし",
   "場合分けの漏れ"
  ],
  "prereq_weight": 1
 },
 "teacher": {
  "background": "",
  "alternatives": "",
  "intent_estimate": "(1) の等式から (2) の不等式へと条件を変え、『余ってもよい』という条件の読み替えができるかを問う設計と推定",
  "confidence": "中"
 },
 "lecture_notes": null,
 "teaching_notes_refs": [
  {
   "page": 3,
   "principle": "数の範囲 (以上・以下の個数の数え方)"
  },
  {
   "page": 31,
   "principle": "差集め算 (1 個かえると差がいくつ変わるか)"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T11:02:51+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "a77c0c0f299b100bca40e0df0c13de96f1d3ce49edfd135ca064c16b25e580bb",
 "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": "合計 40 個の組 (あ, い) を全探索し不等式条件を満たす個数を数える (主解法は 1 個かえたときの差)",
    "result": "計算値 7 / 期待値 7 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '7通り' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0015.py",
  "verified_at": "2026-10-23T00:20:50+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "7通り",
  "computed": "7",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}