1456: 蓝桥杯历届试题-连号区间数 摘要:超时做法 for(int i=0;ip[i]; int res=0; for(int i=0;i…… 题解列表 2022年02月26日 0 点赞 0 评论 536 浏览 评分:0.0
C语言考试练习题_排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,n,e; int a[4]; scanf("%d %d %d %d",&a[0],&a[1]…… 题解列表 2022年02月26日 0 点赞 0 评论 447 浏览 评分:0.0
用for循环遍历数据panduan 摘要:解题思路:注意事项:这个代码能在vs上运行但答案错误不知道为啥参考代码:#include<iostream>using namespace std;int main(){ int a, b, c…… 题解列表 2022年02月26日 0 点赞 0 评论 388 浏览 评分:0.0
网络寻路-dfs 摘要:注意事项:保存前继结点的状态。参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cst…… 题解列表 2022年02月26日 0 点赞 0 评论 722 浏览 评分:0.0
ip判断记录副本 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>int main(){ int n,a,b,c,d; char ch[20]; while(1) { …… 题解列表 2022年02月26日 0 点赞 0 评论 372 浏览 评分:0.0
三种解法——1020猴子吃桃的问题 摘要:解题思路:找到关系求出通项;递归思路; 常规思路注意事项:参考代码:eg:1#include<stdio.h>int hz_taozi(int n) { if(n==1) …… 题解列表 2022年02月26日 0 点赞 0 评论 495 浏览 评分:9.9
[编程入门]阶乘求和 C语言,极速算 摘要:解题思路:注意事项: 使用int范围会不够,使用long及以上就可以了。参考代码:#includeint main() { long long n,a[30],i; scanf("%…… 题解列表 2022年02月26日 0 点赞 0 评论 483 浏览 评分:9.9
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>#include<ctype.h…… 题解列表 2022年02月26日 0 点赞 0 评论 424 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:注意事项:输出时,并不是按照题目给出的全部输入,最后一次性输出。而是输入一行输出一行。参考代码:#include<iostream>#include<iomanip>#include<cma…… 题解列表 2022年02月26日 0 点赞 0 评论 396 浏览 评分:0.0
c语言利用指针解决(代码简洁) 摘要:```c #include int main() { char str[100]; char* p=str, * q=str;//定义两个指针变量,并指向数组首地址 gets(str…… 题解列表 2022年02月26日 0 点赞 0 评论 416 浏览 评分:9.9