{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "7a01b1256de14c1b8ad5e331d1fae735",
  "keywords": "算法高阶,矩阵运算,矩阵求逆,算法问题选编",
  "title": "成绩问题",
  "desc": [
    {
      "content": "\n八个同学的语文数学成绩\n每位同学的语文数学成绩比较，如果成绩都大于等于，则输出1；否则输出0.\n最后形成一个八行八列的矩阵",
      "language": "markdown"
    }
  ],
  "answer": [
    {
      "content": "",
      "language": "cpp"
    }
  ],
  "prepared": [
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ]
  ],
  "template": {
    "content": "#include <stdio.h>\nint main()\n{\n\tint ch[8];\n\tint ma[8];\n\tfor (int i = 0; i < 8; i++)\n\t\tscanf(\"%d%d\", &ch[i], &ma[i]);\n\tfor (int i = 0; i< 8; i++)\n\t{\n\t\tfor (int j = 0; j < 8; j++)\n\t\t\tif (ma[i] >= ma[j] && ch[i] >= ch[j])\n\t\t\t\tprintf(\"1 \");\n\t\t\telse\n\t\t\t\tprintf(\"0 \");\n\t\tprintf(\"\\n\");\n\t}\n\treturn 0;\n}",
    "language": "cpp"
  },
  "node_id": "dailycode-4eb06a6ddce54064adf5c37ab70cc96e",
  "license": "csdn.net",
  "created_at": 1637894160,
  "topic_link": "https://bbs.csdn.net/topics/600469846"
}