2749: 你好,世界! 摘要:#Hello World! ##参考代码: ``` #include using namespace std; int main(){ string a="Hello",b="World…… 题解列表 2023年11月13日 0 点赞 0 评论 319 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Max(a,b,c) ((a>b?a:b))>c?(a>b?a:b):cdouble max(double* p){ …… 题解列表 2023年11月13日 0 点赞 0 评论 327 浏览 评分: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 评论 353 浏览 评分:9.9
链表合并c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef int Status;typedef struct lnode{ int…… 题解列表 2023年11月13日 0 点赞 0 评论 482 浏览 评分:9.9
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 评论 269 浏览 评分:0.0
2817: 级数求和 摘要:``` #include using namespace std; int main(){ int k; double sn=0; cin>>k; for( int i=1; ;…… 题解列表 2023年11月13日 0 点赞 0 评论 236 浏览 评分:0.0
(信息学奥赛一本通T1334-围圈报数)C语言思路简单,易懂!!! 理解万岁 循环链式队列 约瑟夫环 摘要:解题思路:创建一个循环链表注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define len sizeof(num)typedef struct s{…… 题解列表 2023年11月13日 0 点赞 0 评论 454 浏览 评分:9.9
DFS+递归(这题花费我太长时间,仅仅留做纪念,刚接触,大佬勿喷!!!) 摘要:解题思路:DFS注意事项:以后的每一项都要比当前的数大参考代码:#include<iostream>using namespace std;int n;int a[100]={1};void dfs(…… 题解列表 2023年11月13日 0 点赞 4 评论 525 浏览 评分:8.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 评论 295 浏览 评分:0.0
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 评论 328 浏览 评分:0.0