{
 "problem_id": "TOYO-E0023-Q05-S02",
 "transcript": {
  "text": "2026年の1年間の日付を8桁の数で表すことを考えます。例えば、2026年2月2日は20260202、2026年4月30日は20260430とします。このように、月を表している数が1桁の場合は千の位に0を入れ、日の数が1桁の場合は十の位に0を入れることとします。このとき、次の各問いに答えなさい。\n(2) 20260203のように、4種類の数字で表される2月の日付は、2026年2月3日を含めて、全部で何通りありますか。",
  "status": "agent_visual_confirmed",
  "notes": null
 },
 "depends_on": [
  {
   "problem_id": "TOYO-E0023-Q05-S01",
   "label": "0・2・6 だけでできる日は 02、06、20、22、26 (3 種類の日付)"
  }
 ],
 "solution": {
  "final_answer": "17通り",
  "unit": null,
  "first_insight": "2 月の日付は上 6 けたが 202602 で 2・0・6 の 3 種類。日の 2 けたで新しい数字をちょうど 1 種類だけ増やせばよい。日の十の位 (0・1・2) で場合分けする。",
  "insight_basis": "十の位が 0・2 なら一の位が新しい数字、十の位が 1 なら 1 が新しい数字なので一の位は 0・1・2・6 に限られる、と場合分けすると漏れがない。",
  "steps": [
   "上 6 けた 202602 で 3 種類 → 日 (01〜28) で新しい数字をちょうど 1 種類増やす",
   "十の位が 0 (01〜09): 一の位が 0・2・6 以外 → 01、03、04、05、07、08、09 の 7 通り",
   "十の位が 1 (10〜19): 1 が新しい数字なので、一の位は 0・1・2・6 だけ → 10、11、12、16 の 4 通り",
   "十の位が 2 (20〜28): 一の位が新しい数字 → 21、23、24、25、27、28 の 6 通り (2026 年はうるう年ではないので 29 日はない)",
   "7 + 4 + 6 = 17 (通り)"
  ],
  "why": "『新しい数字がちょうど 1 種類』を十の位ごとに言いかえると、各場合で一の位の候補が決まる。うるう年の判定 (2026 は 4 で割り切れない) を忘れない。",
  "check": "逆に数える: 2 月の 28 日から、3 種類の日 (02、06、20、22、26 の 5 日) と 5 種類の日 (13〜15、17〜19 の 6 日) を引くと 28 − 5 − 6 = 17 ✓",
  "common_errors": [
   {
    "error": "2 月 29 日を数えて 18 通りとする",
    "where": "4手目",
    "detect": "2026 は 4 で割り切れないのでうるう年ではない"
   },
   {
    "error": "13 日・14 日なども数える (1 と 3 の 2 種類が増えて 5 種類)",
    "where": "3手目",
    "detect": "十の位の 1 が新しい数字なので、一の位まで新しいと 5 種類になる"
   },
   {
    "error": "02・06・20 日なども 4 種類と思って数える",
    "where": "2・4手目",
    "detect": "これらは 0・2・6 だけで 3 種類 ((1) で数えた日)"
   }
  ],
  "minimal_points": [
   "上 6 けたで 3 種類 → 日で 1 種類だけ増やす",
   "十の位 0・1・2 で場合分け (1 のときは一の位を制限)",
   "2026 年 2 月は 28 日まで"
  ],
  "related": [
   {
    "problem_id": "TOYO-E0016-Q04-S01",
    "why": "先頭 (上の位) で場合分けして数える (2024年第1回)"
   },
   {
    "problem_id": "TOYO-E0012-Q02-S03",
    "why": "うるう年の判定を含む日付の問題 (2022年第3回)"
   }
  ]
 },
 "hints": [
  "2 月の日付は上 6 けたで 2、0、6 の 3 種類を使っている。日の 2 けたで新しい数字を何種類増やせばよいか",
  "日の十の位が 0、1、2 のどれかで場合分けする",
  "十の位が 1 のときは、1 そのものが新しい数字。2026 年 2 月が何日までかも確認する"
 ],
 "analysis": {
  "primary_field": "場合の数",
  "secondary_fields": [
   "数の性質"
  ],
  "cores": [
   "場合分け (十の位で分ける)",
   "条件の言いかえ (新しい数字は 1 種類)",
   "日付の範囲 (うるう年)"
  ],
  "prerequisites": [
   "うるう年の判定",
   "場合分けによる数え上げ"
  ],
  "insight_triggers": "『ちょうど○種類』→ すでに使った数字との差で言いかえる",
  "core_explanation": "",
  "barrier": "場合分け・条件整理",
  "approach_comparison": ""
 },
 "learning": {
  "difficulty": "B",
  "difficulty_basis": "十の位での場合分けと、十の位 1 の制限・2 月 29 日の有無に注意が要る",
  "difficulty_scale": "典型解法を組み合わせる・条件整理が必要 (3〜4段階)",
  "est_minutes": 4,
  "est_basis": "推定 (分析者の暫定値。実測値は学習履歴で別管理)",
  "error_types": [
   "場合分けの漏れ",
   "条件の読み落とし"
  ],
  "prereq_weight": 0
 },
 "teacher": {
  "background": "",
  "alternatives": "",
  "intent_estimate": "(1) から 1 種類増やし、場合分けの軸 (十の位) を自分で決めさせる。2026 年がうるう年でないことを確認させる仕掛けもあると推定",
  "confidence": "中"
 },
 "lecture_notes": null,
 "teaching_notes_refs": [
  {
   "page": 54,
   "principle": "カードならべ (場合分け・同じ数字)"
  },
  {
   "page": 8,
   "principle": "日暦算 (大の月小の月・うるう年)"
  }
 ],
 "verification_methods_declared": [],
 "notes": null,
 "defective": false,
 "content_version": 1,
 "changelog": [
  {
   "version": 1,
   "at": "2026-10-22T19:11:18+09:00",
   "reason": "初版"
  }
 ],
 "_sig": "6d04b1dbe9911ba14ed7a4a867f5340b0cdd76fc19a0f690d759a35e145913d8",
 "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": "2 月の全 28 日を列挙し数字の種類が 4 のものを数える",
    "result": "計算値 17 / 期待値 17 → 一致",
    "by": "verification_script"
   },
   {
    "method": "学校公表の正解との照合",
    "result": "公式 '17通り' → 一致",
    "by": "verification_script"
   },
   {
    "method": "カード解答(final_answer)と計算値の整合",
    "result": "一致",
    "by": "verification_script"
   }
  ],
  "script": "scripts/verify/TOYO-E0023.py",
  "verified_at": "2026-10-23T00:21:20+09:00",
  "verified_by": "verification_script+agent",
  "official_answer": "17通り",
  "computed": "17",
  "conflicts_unresolved": false,
  "stale": false
 },
 "updated_at": "2026-10-23T00:21:24+09:00"
}