递归解题编写题解 1004: [递归]母牛的故事 摘要:解题思路:可以通过对前面几个数据进行总结规律注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int f[1000]={0};int dfc(i…… 题解列表 2022年07月28日 0 点赞 0 评论 360 浏览 评分:6.0
看看能否刷经验值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i,sum=0; scanf("%d\n",&N); int a[N]; for(i=0;i<N;i…… 题解列表 2022年08月02日 0 点赞 0 评论 383 浏览 评分:6.0
1196——————去掉空格 摘要: a = input() while True: print(a.replace(' ','')) a = input()#凑字数凑字数凑字数凑字数…… 题解列表 2022年08月03日 0 点赞 0 评论 536 浏览 评分:6.0
母牛的故事--不用递归 摘要:解题思路:前四年都是正常的一年一只,第五年开始等于前一年与前三年的小牛总和。注意事项:参考代码:# includeint main(){ int a[56]={0,1,2,3,4},i,n; whil…… 题解列表 2022年08月05日 0 点赞 0 评论 293 浏览 评分:6.0
c语言求解圆面积(详细注释) 摘要:#include <stdio.h>int main(){ //设置圆半径为r,s double r,s; //输入圆半径r,注意在scanf中double要用%lf表示 sc…… 题解列表 2022年08月11日 0 点赞 0 评论 700 浏览 评分:6.0
亲和数c++题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int k; cin>>k; int m,n; …… 题解列表 2022年08月11日 0 点赞 2 评论 262 浏览 评分:6.0
DNA C++题解+思路 摘要:# 解题思路: 首先输入长和宽,然后循环(后面有注释)如果在对角线上就输出X否则就输出空格。(只有在行不等于零而且数量为第一个同达小时才会输出)(就是只有第一个会往上多一行) >注意事项: …… 题解列表 2022年08月11日 0 点赞 3 评论 352 浏览 评分:6.0
1531的题解,十分简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int ans[111]={}; int n; …… 题解列表 2022年08月12日 0 点赞 0 评论 412 浏览 评分:6.0
简单的模拟题,时间复杂度O(n+mlogm) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 100010#define maxm 100010#def…… 题解列表 2022年08月18日 0 点赞 0 评论 433 浏览 评分:6.0
题目 1037: [编程入门]宏定义的练习 摘要:水个题解 ```cpp #include using namespace std; int main() { int a,b; cin >> a >> b; c…… 题解列表 2022年08月23日 0 点赞 2 评论 571 浏览 评分:6.0