注意审题有陷阱,花我那么多时间 摘要:解题思路:注意事项:有可能n>m,如果用for从n到m要换位置,而且输出的时候要注意以输入时的顺序输出参考代码:#include<stdio.h>#include<string…… 题解列表 2025年02月11日 0 点赞 0 评论 184 浏览 评分:0.0
链表之报数问题(作代码记录用,与之前碰到的报数问题解决思想一样,不过是将数组替换为了链表) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct…… 题解列表 2025年02月11日 0 点赞 0 评论 156 浏览 评分:0.0
1138: C语言训练-求矩阵的两对角线上的元素之和 摘要:#include #include int main(){ int n,x=0; scanf("%d",&n); int a[n][n]; int i,j; for…… 题解列表 2025年02月11日 2 点赞 0 评论 353 浏览 评分:10.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:#include <stdio.h>#include <string.h>int main(){ int x,i; int a[4]; for(i=1000;i<9999…… 题解列表 2025年02月11日 1 点赞 0 评论 150 浏览 评分:10.0
c语言求s=a+aa+aaa+aaaa+aa...a的值 摘要:#include #include int main(){ long long a,n,e=0; scanf("%lld %lld",&a,&n); int i,j; …… 题解列表 2025年02月11日 2 点赞 0 评论 281 浏览 评分:10.0
一个思想转弯拐过来秒了 摘要:解题思路:1找到最小的Ai,并统计输入的n个数据中各数出现的次数a[Ai]2.判断a[Ai]%(Ai+1)==0,符合Ai++并重复上述步骤,反之break注意事项:Ai<=1e9(10…… 题解列表 2025年02月11日 1 点赞 0 评论 317 浏览 评分:10.0
编写题解 1505: 蓝桥杯算法提高VIP-单词个数统计 摘要:解题思路:注意事项:参考代码:#include <iostream>#include "string"using namespace std;int main (){ …… 题解列表 2025年02月11日 0 点赞 0 评论 114 浏览 评分:0.0
[信息学奥赛一本通T1503-道路和航线] - 连通块+Dijkstra+拓扑排序(或者SPFA加一些优化,SLF,LLL,DFS这些) 摘要:## 方法一:DFS求连通块+块内Dijkstra+拓扑排序tip: 用SPFA只能大部分```cpp#include// #define int long long // memse…… 题解列表 2025年02月10日 1 点赞 0 评论 175 浏览 评分:10.0
链表的基本操作(作代码记录用,费时间想的,运行时间稍长) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct…… 题解列表 2025年02月10日 0 点赞 0 评论 293 浏览 评分:0.0
链表的基本操作(作代码记录用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct…… 题解列表 2025年02月10日 0 点赞 0 评论 252 浏览 评分:0.0