题解列表

筛选

[编程入门]结构体之时间设计

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    struct years    {        ;        int year;        i……
优质题解

【C语言】最多的水:本质上是算最大面积 - DotcppXF

摘要:【解题思路】        ① 其实题目很简单,但是题目描述写的不太严谨,一开始很迷惑,怎么直线能成为容器了?水量的单位是啥?        ② 后来大概明白要干啥后,不如重新表述一下题目:给定n个非……

003: [编程入门]密码破译

摘要:解题思路:注意事项:前面char过了,后面就不用char了参考代码:#include <iostream> using namespace std;int main(){char C,h,i,n,a;……

汽水瓶(java)

摘要:解题思路:注意事项:参考代码: import java.util.Scanner;         public class Main{ public static void main……

利用printf函数实现Hello World

摘要:解题思路:利用printf函数注意事项:注意换行符即可参考代码:#include<stdio.h>int main(){   printf("**************************\n"……

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……