题解列表

筛选

送分题素数 (C++代码)

摘要:解题思路:两种选择查一下100~200间有那些素数,复制粘贴并打印;2.像我这样编一个输出素数的程序;注意事项:参考代码:#include <stdio.h> int main(){    int i……

P1035 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<cstdio> #include<cstring> int n,m; int x[4]={0,0,1,-1}; int y[4]……

成绩转换 (C语言代码)

摘要:解题思路: 注意事项: 参考代码: /* 90~100为A;  80~89为B;  70~79为C;  60~69为D;  0~59为E; */ #include <stdio.h>……

三角形 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int n_max=100+5; int a[n_max][n_max]……
优质题解

素数回文 (C++代码)

摘要:解题思路: 把题目分解分别写出判断素数和回文数的函数,再把最终判断的数整合在一起注意事项:    范围整型装不下,需要开到long long参考代码:#include <stdio.h> #incl……

日期排序 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<algorithm> using namespace std; cons……

回文数(一) (C++代码)

摘要:解题思路:在函数里面利用求模相乘来求出所求的数的倒过来的数,然后相加再求模来判断是否 为回文数,如果为回文数则输出共计算的步数,否则则利用递归再求一遍,如果步数大于8则可以直接 输出0,小……