1003: [编程入门]密码破译 摘要:``` #include using namespace std; int main(){ char a,b,c,d,e; cin>>a>>b>>c>>d>>e; a+=4; b…… 题解列表 2023年11月13日 0 点赞 0 评论 298 浏览 评分:0.0
两种方式求解(递归超时,数组➕循环ac) 摘要:解题思路:循环+数组注意事项:因为数据太大,递归会超时,所以采用数组记录已经计算过的数值参考代码:#include<iostream>using namespace std;int f(int n){…… 题解列表 2023年11月13日 0 点赞 0 评论 533 浏览 评分:9.9
2818: 分离整数的各个数位 摘要:``` #include using namespace std; int main(){ int a,b=0; cin>>a; if( a%10==0 ){ a=a/10; …… 题解列表 2023年11月13日 0 点赞 0 评论 222 浏览 评分:0.0
2818: 分离整数的各个数位(for循环) 摘要:``` #include using namespace std; int main(){ int a,b=0; cin>>a; for( int i=1;;i++ ){ b=…… 题解列表 2023年11月13日 0 点赞 0 评论 201 浏览 评分:0.0
DFS+递归(这题花费我太长时间,仅仅留做纪念,刚接触,大佬勿喷!!!) 摘要:解题思路:DFS注意事项:以后的每一项都要比当前的数大参考代码:#include<iostream>using namespace std;int n;int a[100]={1};void dfs(…… 题解列表 2023年11月13日 0 点赞 4 评论 425 浏览 评分:8.0
(信息学奥赛一本通T1334-围圈报数)C语言思路简单,易懂!!! 理解万岁 循环链式队列 约瑟夫环 摘要:解题思路:创建一个循环链表注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define len sizeof(num)typedef struct s{…… 题解列表 2023年11月13日 0 点赞 0 评论 359 浏览 评分:9.9
2817: 级数求和 摘要:``` #include using namespace std; int main(){ int k; double sn=0; cin>>k; for( int i=1; ;…… 题解列表 2023年11月13日 0 点赞 0 评论 151 浏览 评分:0.0
1147:C语言训练-角谷猜想 摘要:``` #include using namespace std; int a,x; int main(){ cin>>a; for( int i=1;1;i++ ){ if( …… 题解列表 2023年11月13日 0 点赞 0 评论 187 浏览 评分:0.0
链表合并c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef int Status;typedef struct lnode{ int…… 题解列表 2023年11月13日 0 点赞 0 评论 372 浏览 评分:9.9
2812: 球弹跳高度的计算 摘要:``` #include using namespace std; double x,y,z,sum,h; int main(){ cin>>h; for( int i=1;i…… 题解列表 2023年11月13日 0 点赞 0 评论 256 浏览 评分:9.9