题解列表
温度转换(简单常规版)
摘要:解题思路:定义两个数组,一个是原来的摄氏度,另一个是转换后的华氏度注意事项:参考代码:#include<stdio.h>void ctof(int a[],int b[]);int main(){ ……
话费计算(非常简单)
摘要:解题思路:非常简单常规注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f",&a); a=50+a*0.4; p……
初学者30分钟的尝试
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,a,i,j,count=0; scanf("%d",&n); a=n……
1133库函数解法(Python)
摘要:解题思路:Python的魅力就是库函数的多样性和强大性注意事项:math.factorial(i)即返回i的阶乘值参考代码:import mathn = int(input())summary = 0……
适合初学者看通俗易懂C++
摘要:解题思路: 1.题目要求最小步数,利用BFS搜索,一旦找到就是最小步数; 2.使用双向搜索减少时间,分别从初态和终态使用BFS,使用map关联数组命名为maps的键……
二级C语言-自定义函数题解
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int n){ double s; if(n==1) s=……