59.json 1.1 KB
Newer Older
每日一练社区's avatar
test  
每日一练社区 已提交
1
{
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
  "question_id": 251110,
  "question_title": "筛选10到1000的回文数",
  "question_content": "筛选出10到1000的回文数",
  "difficulty": "简单",
  "answer_id": 249084,
  "answer_content": "\n\n```\n #include <stdio.h>\nint main()  \n{  \n    int m,n,k;  \n    for(m=1;m<=1000;m++)  \n    {  \n    k=m;  \n    n=0;  \n    while(k>0)  \n    {  \n        n=n*10+(k%10);  \n        k=k/10;  \n    }  \n    if(m==n) printf(\"%d \", m);  \n    }\n    return 0;     \n}\n```\n\n",
  "tag_name": "c++",
  "cpp": "#include <stdio.h>\nint main()  \n{  \n\tint m,n,k;  \n\tfor(m=1;m<=1000;m++)  \n\t{  \n\t\tk=m;  \n\t\tn=0;  \n\t\twhile(k>0)  \n\t\t{  \n\t\t\tn=n*10+(k%10);  \n\t\t\tk=k/10;  \n\t\t}  \n\t\tif(m==n) printf(\"%d \", m);  \n\t}\n\treturn 0;\t \n}",
  "topic_link": "https://bbs.csdn.net/topics/600470162",
  "status": 1,
  "keywords": "回文,数学运算",
  "license": "csdn.net",
  "notebook": {
    "cpp": "https://codechina.csdn.net/csdn/csdn-daily-code/-/jupyter/master/data/notebook/answer/ipynb/cpp/59.ipynb?type=file"
  },
  "notebook_enable": 1,
  "author": "zhanjiaming"
每日一练社区's avatar
test  
每日一练社区 已提交
19
}