{
 "problem_id": "TOYO-E0003-Q02-S03",
 "transcript": {
  "text": "あるお店では、商品Aを80円で、Bを500円で、Cを760円で売っています。豊子さんがそれらの商品を何個か買ったところ、合計金額が2240円になりました。このとき、豊子さんが買った商品A、B、Cの個数の組み合わせは何通り考えられますか。ただし、1個も買わなかった商品があってもよいものとします。",
  "status": "agent_visual_confirmed",
  "notes": null
 },
 "depends_on": [],
 "solution": {
  "final_answer": "4通り",
  "unit": null,
  "first_insight": "C は 760 円なので 2 個まで (3 個で 2280 円 > 2240 円)。C の個数で場合分けし、残りの金額が『500 円の B 何個 + 80 円の A 何個』で作れるかを表で調べる。",
  "insight_basis": "個数の上限が小さい高い商品から場合分けすると、調べる組み合わせが少ない (C: 0〜2 個、B: 0〜4 個)。A は 80 円なので『残りが 80 で割り切れるか』だけ確認すればよい。",
  "steps": [
   "C の個数は 0, 1, 2 のどれか (760 × 3 = 2280 > 2240)。B の個数は 0〜4 (500 × 5 = 2500 > 2240)",
   "C = 0 個 (残り 2240 円): B = 0 → 2240 ÷ 80 = 28 個 ○、B = 1 → 1740 ×、B = 2 → 1240 ×、B = 3 → 740 ×、B = 4 → 240 ÷ 80 = 3 個 ○",
   "C = 1 個 (残り 1480 円): B = 0 → 1480 ×、B = 1 → 980 ×、B = 2 → 480 ÷ 80 = 6 個 ○ (B = 3 以上は 1500 円超で不可)",
   "C = 2 個 (残り 720 円): B = 0 → 720 ÷ 80 = 9 個 ○、B = 1 → 220 ×",
   "(A, B, C) = (28, 0, 0), (3, 4, 0), (6, 2, 1), (9, 0, 2) の 4 通り"
  ],
  "why": "A が最も安く 80 円なので『残りの金額が 80 の倍数か』が判定条件。すべて 20 円の倍数なので 20 で割ると 4a + 25b + 38c = 112 となり、『b + 2c が 4 の倍数』(25b は 24b + b、38c は 36c + 2c) から (b, c) = (0,0), (4,0), (2,1), (0,2) に絞ることもできる。",
  "check": "80 × 28 = 2240 ✓、80 × 3 + 500 × 4 = 240 + 2000 = 2240 ✓、80 × 6 + 500 × 2 + 760 = 480 + 1000 + 760 = 2240 ✓、80 × 9 + 760 × 2 = 720 + 1520 = 2240 ✓。全探索 (A 0〜28, B 0〜4, C 0〜2) でもこの 4 組だけ。",
  "common_errors": [
   {
    "error": "『1 個も買わなかった商品があってもよい』を見落とし、A だけの (28, 0, 0) や C = 0 の組を除く",
    "where": "読解",
    "detect": "0 個を許す条件を確認"
   },
   {
    "error": "C = 1 のときの残り 1480 円で B = 2 (480 円 → A 6 個) を落とす",
    "where": "3手目",
    "detect": "B を 0 から順に表で全部書く"
   },
   {
    "error": "500 の倍数と 80 の倍数の組み合わせを一の位の感覚で数える",
    "where": "発想",
    "detect": "80 で割り切れるかを実際に計算する"
   }
  ],
  "minimal_points": [
   "高い商品 (C) から場合分け、上限は 2 個",
   "残りが 80 で割り切れるかを表で確認",
   "0 個も許す"
  ],
  "related": []
 },
 "hints": [
  "いちばん高い C の個数は何個まであり得るか (合計を超えない範囲)",
  "C の個数ごとに残りの金額を出し、B の個数を 0 から順に増やして表にする",
  "A は 80 円だから、残りの金額が 80 で割り切れるときだけ組が成立する。0 個の商品があってもよい"
 ],
 "analysis": {
  "primary_field": "場合の数",
  "secondary_fields": [
   "数の性質"
  ],
  "cores": [
   "場合分け (上限の小さいものから)",
   "倍数判定 (80 で割り切れる)",
   "表で漏れなく数える"
  ],
  "prerequisites": [
   "倍数",
   "表による書き出し"
  ],
  "insight_triggers": "",
  "core_explanation": "",
  "barrier": "条件整理・場合分け",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "B",
  "difficulty_basis": "場合分けは 3 段 × 最大 5 通りの表で処理できるが、漏れなく書き切る条件整理が要る",
  "difficulty_scale": "典型解法を組み合わせる・条件整理が必要 (3〜4段階)",
  "est_minutes": 5,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "場合分けの漏れ",
   "条件の読み落とし"
  ],
  "prereq_weight": 0
 },
 "teacher": {
  "background": "教師用: 不定方程式 4a + 25b + 38c = 112 (20 で割った形)。mod 4 で b + 2c ≡ 0 となり、(b, c) は 4 組に限られる。",
  "alternatives": "",
  "intent_estimate": "不定方程式型の個数問題。計算量を抑える場合分けの順序 (高い商品から) を選べるか、0 個の扱いを読めるかを見る設計と推定。",
  "confidence": "中"
 },
 "lecture_notes": null,
 "teaching_notes_refs": [
  {
   "page": 54,
   "principle": "組み合わせの書き出し (場合分け)"
  },
  {
   "page": 5,
   "principle": "倍数判定法"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T11:12:29+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "7b47090e0200f6068c401384600cbcdd653ba33514d8128a5ce66d11a7e31f85",
 "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": "A, B, C の個数を (0..28, 0..4, 0..2) で全探索し 2240 円になる組を数える",
    "result": "計算値 4 / 期待値 4 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '4通り' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0003.py",
  "verified_at": "2026-10-23T00:19:57+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "4通り",
  "computed": "4",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}