摘苹果的天天 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int b; int i=0,j=0; while(~scanf(…… 题解列表 2023年12月14日 0 点赞 0 评论 415 浏览 评分:0.0
................ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=1; scanf("%d",&n); for(int i=0;i<n-1;…… 题解列表 2023年12月14日 0 点赞 0 评论 458 浏览 评分:0.0
略显生疏。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double n=0,change,k=0; scanf("%lf"…… 题解列表 2023年12月14日 0 点赞 0 评论 416 浏览 评分:0.0
Pell数列(C语言) 参考代码:```c#includeintm(intk){intsum=0;inta1=1,a2=2;if(k==1){sum=1;}elseif(k==2){sum=2;}else{for(inti=3;i 题解列表 2023年12月15日 0 点赞 0 评论 790 浏览 评分:0.0
题解 1023: [编程入门]选择排序(冒泡排序 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int temp; int ar…… 题解列表 2023年12月15日 0 点赞 0 评论 470 浏览 评分:0.0
用C语言简单的思路来解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,h,count=0;//i为数组下标,h为陶陶高度,count为摘下来的果子个…… 题解列表 2023年12月15日 0 点赞 0 评论 515 浏览 评分:0.0
流感传染(用深度优先做,这题深搜里应该也会有) 解题思路:这题与那个细菌的繁殖和扩散很相似,用深搜,上下左右四个方向遍历一下,每天在一个方向只传染一个人,建两个数组,第一个数组存每天传染前,第二个数组存传染后,以免遍历的时候出现今天刚被传染的又在今天传染了别人,一天过后更新第一个数组要注意最后输出的结果是第m天开始时, 题解列表 2023年12月15日 0 点赞 0 评论 842 浏览 评分:0.0
题解 1200: 回文串 摘要: #include using namespace std; char s[100000]; int main(){ cin>>s; int…… 题解列表 2023年12月15日 0 点赞 0 评论 527 浏览 评分:0.0
1200: 回文串C++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N];int main(){ ci…… 题解列表 2023年12月15日 0 点赞 0 评论 574 浏览 评分:0.0
题解 2853: 字符替换 摘要: #include using namespace std; char a[20000],b,c,d,n; int main(){ cin>…… 题解列表 2023年12月15日 0 点赞 0 评论 460 浏览 评分:0.0