优质题解 蓝桥杯算法提高VIP-勾股数-题解(C语言代码) 摘要:#### 原题链接:[勾股数](https://www.dotcpp.com/oj/problem1504.html "勾股数") 勾股数是一组三个自然数,a < b < c,…… 题解列表 2019年07月15日 0 点赞 7 评论 2529 浏览 评分:9.4
等待戈多-题解(C++代码)最短路spfa模板,它还没死!!!(逃 摘要:```cpp 时间 = 路程 / 速度 #include "iostream" #include "cstdio" #include "cstdlib" #include "cstrin…… 题解列表 2019年07月15日 0 点赞 0 评论 1437 浏览 评分:6.7
忙碌的小L (C++代码)强连通分量tarjan 摘要:```cpp #include "iostream" #include "cstdio" #include "cstdlib" #include "cstring" #include "cm…… 题解列表 2019年07月15日 0 点赞 0 评论 1396 浏览 评分:9.9
C语言训练-计算1977!*-题解(Python代码) //用Python非常简单,因为Python对于类型长度没有要求,所以完全可以直接写下去i=int(1)b=int(1)whilei 题解列表 2019年07月15日 0 点赞 0 评论 1647 浏览 评分:5.5
蓝桥杯历届试题-网络寻路 (C++代码)dfs 摘要:```cpp 题目大致意思是说你要找到从任意一点开始,经过3个结点的方案数 并且除了起点和终点外(终点可以是开始点,也可以是其他未访问过的点),其他点只能访问一次 例如: 1->2->3-…… 题解列表 2019年07月15日 0 点赞 0 评论 1688 浏览 评分:7.3
蓝桥杯2013年第四届真题-大臣的旅费 (C++代码)最短路spfa ```cpp会dfs、bfs都可以解决这个问题,只需要从任意一个结点(点A)开始,遍历所有联通的点,找到距离这个结点最远的点(点B),然后再从B找一个距离B结点最远的点, 题解列表 2019年07月15日 0 点赞 0 评论 1870 浏览 评分:9.9
弟弟的作业-题解(C语言描述_冰煌雪舞) ```c#includeintmain(void){charop;inta,b,c;intt;intcnt=0;while((t=scanf("%d%c%d=%d",&a,&op,&b,&c))!=EOF){if(t==4){if(op=='+'&&a+b==c)cnt++;if(op=='-'&&a 题解列表 2019年07月15日 0 点赞 0 评论 1176 浏览 评分:8.0
数据结构-双向循环链表-题解(C语言代码) ````ctypedefstruct_Node{intdata;struct_Node*prev;struct_Node*next;charzero[4];//内存对齐}NODE,*PNODE;PNODEHead=NULL;PNODELast=NULL;//双向循环链表voidinsert(intin 题解列表 2019年07月15日 0 点赞 0 评论 1714 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) #includestructdate{intyear;intmonth;intday;}num;intIs_runnian(intx){intb;if((x%4==0&&x%100!=0)||(x%400==0))b=1;elseb=0;returnb;}intmain(){inti, 题解列表 2019年07月15日 0 点赞 0 评论 1347 浏览 评分:0.0
The 3n + 1 problem -题解(C语言代码) 摘要:#include int main() { int i,j,k,t,n; while(scanf("%d%d",&i,&j)==2)//当i,j都录入成功时返回值为2 { int…… 题解列表 2019年07月15日 0 点赞 0 评论 696 浏览 评分:0.0