简单粗暴的解法 摘要:解题思路:立方用自定义函数,主函数用for循环注意事项:参考代码:#include<stdio.h>double power(double n,int p){ int i;double pow=1; …… 题解列表 2022年11月08日 0 点赞 0 评论 861 浏览 评分:7.3
应该是这个吧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; double b; scanf("%f%lf",&a,&b); pri…… 题解列表 2022年11月09日 0 点赞 2 评论 1069 浏览 评分:7.3
1秒看懂思路 解题思路:注意事项:有些数据太大int型无法接收,需要用long型参考代码:importjava.util.Scanner;publicclassTom数{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);while( 题解列表 2022年11月10日 0 点赞 0 评论 695 浏览 评分:7.3
c++字符串加密病历单 摘要:解题思路:注意事项:xyz的逆序输出参考代码:#include <bits/stdc++.h>using namespace std;int main (){ string tmp; char ans…… 题解列表 2022年11月19日 0 点赞 0 评论 1113 浏览 评分:7.3
大整数乘法(详细版) 摘要:解题思路:这里的思路就是进位法,这种高精度的题目必须要用到数组去保存,所以这类题都是用数组来做。注意事项:参考代#include<stdio.h>#include<string.h>int main(…… 题解列表 2022年11月20日 0 点赞 2 评论 1016 浏览 评分:7.3
基础入门)交换值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d",b,…… 题解列表 2022年11月20日 0 点赞 0 评论 774 浏览 评分:7.3
我是硬解的废物 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n,p1=0,p2=0; char s1[10],s2[…… 题解列表 2022年11月24日 0 点赞 0 评论 755 浏览 评分:7.3
哈哈哈哈哈 摘要:解题思路:注意事项:参考代码:x=list(map(int,input().split()))x.sort(reverse=True)for i in x: print(i,end=' …… 题解列表 2022年11月25日 0 点赞 0 评论 606 浏览 评分:7.3
C++三目超简 摘要:解题思路:如果年份整除于4但不整除于100则为普通闰年,如果年份整除于400则为世纪闰年.我们可以通过三目运算符来进行判断。注意事项:注意格式规范参考代码:#include <iostream>#de…… 题解列表 2022年11月26日 0 点赞 0 评论 874 浏览 评分:7.3
递归(C语言) 观察到第一年为一头,第二年为两头。。。第五年为六头以此类推,可以得到递推公式f(n)=f(n-1)+f(n-3)则可创建递归函数------------#includeintF(intx){if(x>4)returnF(x-1)+F(x-3);elseif(x>=1&&x 题解列表 2022年12月02日 0 点赞 0 评论 617 浏览 评分:7.3