题解列表

筛选

简单拆分(C语言)

摘要:解题思路:逆序不是从小到大注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c; scanf("%d",&x); a=x/100; b=x/10%10;……

自定义函数之数字分离

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char a[],char b[]){    int i=0,j=0;    whi……

2981: 二进制分类

摘要:解题思路:int er(int a){   int sum1=0,sum0=0,b=a;   for(;;)   {       if(b%2==1)       {           sum1++……

2968: 区间内的真素数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数    if(x<2)    {       ……

区间内的真素数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;bool zs(int x){    if(x<2)    {        re……

2966: 最大质因子序列

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数    int sum=0;    for(i……

2950: 素数回文数的个数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;//判断是否为素数int ss(int x){    if(x<2)    {       ……