题解列表

筛选

链表合并问题

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>// 定义链表结构体typedef struct node {    int id;      ……

计算分数的浮点数值

摘要:解题思路:计算分数的浮点数值注意事项:b!=0参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    if(b……

计算多项式的值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double x,a,b,c,d;    scanf("%lf %lf %……

[编程入门]密码破译

摘要:解题思路:自己看注意事项:参考代码:#include <stdio.h>void encryptPassword(char* str) {    int i = 0;    while (str[i]……

水仙花数判断

摘要:解题思路:首先表示这个三位数范围在100到999之间,再表示其百位,十位及个位数字。最后验证其百位,十位及个位数字的三次方之和是否等于该数字。注意事项:三个数字的表示参考代码:#include<std……

求大于1小于1000的阿姆斯特朗数

摘要:解题思路:拆解数字各个位上的数字,并求出立方和注意事项:无参考代码:#include <stdio.h>#include <math.h>int main() {    for (int i = 1;……

2543: 简单计算机器实现

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

财务管理!!!!

摘要:解题思路:注意事项:参考代码:a1=0a3=0while a1<12:    a2=float(input())    a3+=a2    a1+=1a4=a3/12print("$%.2f"%a4)……