1004: [递归]母牛的故事 摘要:# include<stdio.h> int fun(int n) { if(n<=3) return n; else return fun(n-1)+fun(n-3); }…… 题解列表 2022年05月08日 0 点赞 0 评论 413 浏览 评分:0.0
编写题解 1013: [编程入门]Sn的公式求和 摘要:解题思路:注意事项:参考代码:n=eval(input()) sum=0 a=0 for i in range(n): a=a*10+2 sum+=a print(sum)…… 题解列表 2022年05月08日 0 点赞 0 评论 390 浏览 评分:0.0
字符串内排序 题解(超简单) 摘要:解题思路:不就是个字符串中的字符排个序嘛!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;char a[1005];int m…… 题解列表 2022年05月08日 0 点赞 0 评论 410 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 268 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main (){ char str[1…… 题解列表 2022年05月08日 0 点赞 0 评论 325 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n=eval(input()) sum=0 a=1 for i in range(1,n+1): a=1 for j in range(1,i+…… 题解列表 2022年05月08日 0 点赞 0 评论 304 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) sum1=sum2=sum3=0 for i in range(1,a+1): sum1+=i…… 题解列表 2022年05月08日 0 点赞 0 评论 220 浏览 评分:0.0
温度转换 题解(超级简单) 摘要:解题思路:按题目套公式来转换温度。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double f;int main(){ scanf("…… 题解列表 2022年05月08日 1 点赞 0 评论 405 浏览 评分:0.0
母牛的故事 题解(c++简单) 摘要:解题思路:直接一个一个推算就欧了,最后输出结果。呵呵。请欣赏代码!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int a[…… 题解列表 2022年05月08日 0 点赞 0 评论 334 浏览 评分:0.0
个数找最大值 题解(c++超简单,直接) 摘要:解题思路:直接用两次max函数找最大的。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){scan…… 题解列表 2022年05月08日 0 点赞 0 评论 327 浏览 评分:0.0