题解列表

筛选

简单粗暴的解法

摘要:解题思路:立方用自定义函数,主函数用for循环注意事项:参考代码:#include<stdio.h>double power(double n,int p){ int i;double pow=1; ……

应该是这个吧

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

1秒看懂思路

摘要:解题思路:注意事项:有些数据太大int型无法接收,需要用long型参考代码:import java.util.Scanner;public class Tom数 { public static voi……

c++字符串加密病历单

摘要:解题思路:注意事项:xyz的逆序输出参考代码:#include <bits/stdc++.h>using namespace std;int main (){ string tmp; char ans……

大整数乘法(详细版)

摘要:解题思路:这里的思路就是进位法,这种高精度的题目必须要用到数组去保存,所以这类题都是用数组来做。注意事项:参考代#include<stdio.h>#include<string.h>int main(……

基础入门)交换值

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

我是硬解的废物

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    int n,p1=0,p2=0;    char s1[10],s2[……

哈哈哈哈哈

摘要:解题思路:注意事项:参考代码:x=list(map(int,input().split()))x.sort(reverse=True)for i in x:    print(i,end=&#39; ……

C++三目超简

摘要:解题思路:如果年份整除于4但不整除于100则为普通闰年,如果年份整除于400则为世纪闰年.我们可以通过三目运算符来进行判断。注意事项:注意格式规范参考代码:#include <iostream>#de……

递归(C语言)

摘要:观察到第一年为一头,第二年为两头。。。第五年为六头 以此类推,可以得到递推公式f(n)=f(n-1)+f(n-3)则可创建递归函数 ------------ #include……