{
  "question_id": 1098271,
  "question_title": "成绩问题",
  "question_content": "八个同学的语文数学成绩\n每位同学的语文数学成绩比较，如果成绩都大于等于，则输出1；否则输出0.\n最后形成一个八行八列的矩阵",
  "difficulty": "简单",
  "answer_id": 1312686,
  "answer_content": "\n```\n#include <stdio.h>\nint main()\n{\nint ch[8];\nint ma[8];\nfor (int i = 0; i < 8; i++)\nscanf(\"%d%d\", &ch[i], &ma[i]);\nfor (int i = 0; i< 8; i++)\n{\nfor (int j = 0; j < 8; j++)\nif (ma[i] >= ma[j] && ch[i] >= ch[j])\nprintf(\"1 \");\nelse\nprintf(\"0 \");\nprintf(\"\\n\");\n}\nreturn 0;\n}\n```\n# 问题解决的话，请点下采纳",
  "tag_name": "c语言",
  "cpp": "#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}",
  "topic_link": "https://bbs.csdn.net/topics/600469846",
  "status": 1,
  "keywords": "算法高阶,矩阵运算,矩阵求逆,算法问题选编",
  "license": "csdn.net",
  "notebook": {
    "cpp": "https://codechina.csdn.net/csdn/csdn-daily-code/-/jupyter/master/data/notebook/answer/ipynb/cpp/33.ipynb?type=file"
  },
  "notebook_enable": 1,
  "author": "wshaipsy"
}