solution.json 1.4 KB
Newer Older
每日一练社区's avatar
每日一练社区 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "5cb9e1d5145d47fab87b6f8e0c239c15",
  "keywords": "算法高阶,数论算法,算法问题选编,整数的因子分解",
  "title": "利用字母组成图形",
  "desc": [
    {
      "content": "\n利用字母可以组成一些美丽的图形,下面给出了一个例子:\nABCDEFG\nBABCDEF\nCBABCDE\nDCBABCD\nEDCBABC\n这是一个5行7列的图形,请找出这个图形的规律,并输出一个n行m列的图形。\n输入一行,包含两个整数n和m,分别表示你要输出的图形的行数的列数。",
      "language": "markdown"
    }
  ],
  "answer": [
    {
      "content": "",
      "language": "cpp"
    }
  ],
  "prepared": [
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ]
  ],
  "template": {
    "content": "#include<stdio.h>\n#include<math.h>\nint main()\n{\n\tint m,n;\n\tscanf(\"%d%d\",&n,&m);\n\tint i,j;\n\tfor(i=0;i<n;i++)\n\t{\n\t\t for(j=0;j<m;j++)\n\t\t {\n\t\t\t  printf(\"%c\",65+abs(i-j)); \n\t\t }\n\t\t printf(\"\\n\");\n\t} \n   return 0;\n}",
    "language": "cpp"
  },
  "node_id": "dailycode-e140a9b572594a378231e0b69e615f00",
  "license": "csdn.net",
  "created_at": 1637894158,
  "topic_link": "https://bbs.csdn.net/topics/600470183"
}