题解列表

筛选

字符串分类统计的Python解法

摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s:    if i.isdigit():        a+=1    elif i.isalpha(……

分离整数的各个数位

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    int t;    scanf("%d",&a);    while(a>0){   ……

求和训练(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    int a,b,c;    c……

水仙花数判断

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int g,s,b;    for(int i=100;i<10……

完数的判断

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){   int a,s=0;   cin >> a;   for(int……

多边形内角和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,j,o,sum=0; scanf("%d", &n); j = (n - 2) * 180; for……

结构体之时间设计

摘要:解题思路:先根据年份判断平闰年调用函数实现天数判断最后返回天数即可注意事项:在定义类的时候不能定义为已有的函数名称,否则报错参考代码:#include<iostream>using namespace……

结构体之成绩记录

摘要:解题思路:定义一个结构体初始化结构体数组利用结构体数组实现数据存入再输出即可注意事项:参考代码:#include<iostream>using namespace std;struct student……