题解列表

筛选

2925: 单词排序

摘要:解题思路:注意事项:参考代码://字符串的排序(冒泡排序) #include <stdio.h> #include <string.h> int main() {     int n = 0……

3个数找最大值

摘要:解题思路:#include<stdio.h>int main(){    int a,b,c,d;    scanf("%d%d%d",&a,&b,&c);    d=a>b?a:b;    d=d>……

python 递归母牛故事

摘要:解题思路:python在运行递归的时候每次取值都会计算一次这样运行速度就十分的缓慢但是如果我们将结果放到缓存那么就可以大大提高它的运行速度注意事项:参考代码:from functools import……

点和正方形的关系

摘要:解题思路:只要满足这个点在正方形就欧了注意事项:给个五星呗参考代码#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);   ……

菜鸟解:算不出来的星期几

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){   long long  c=1;//定义天数;   int a,b;   ……

每日一道----计算2的幂

摘要:解题思路:注意事项:主要需要注意的是pow函数返回的是double类型的数值,通过强制类型转换成int类型参考代码:#include<stdio.h>#include<math.h>int main(……