蓝桥杯2013年第四届真题-大臣的旅费-题解(C++代码) 摘要:解题思路:1.构建图2.dijkstra 从任意一个点出发,找到距离这个点最远的点,再从这个点出发,找到一条最长的路3.根据路的长度求出旅费为什么要找到某个点的最远点? 而不是从任意的边缘的某个点为起…… 题解列表 2020年09月10日 0 点赞 0 评论 914 浏览 评分:0.0
密码-题解(C语言代码)傻瓜写法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void fun(char *code);int main (){ char code[100]…… 题解列表 2020年09月10日 0 点赞 0 评论 803 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(C语言代码) 摘要:解题思路:用一个与原数组等长的数组分成两部分(0到n-m-1和n-m到n-1)重新装入原数组的数据。注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int…… 题解列表 2020年09月10日 0 点赞 0 评论 502 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>void work(int a[],int b[],int n,int m){ int i…… 题解列表 2020年09月10日 0 点赞 0 评论 901 浏览 评分:0.0
A+B for Input-Output Practice (I)-题解(C++代码) 摘要:解题思路: 为避免题目可能的一些坑(比如输入数字大于int表示的范围),特地使用了long long int注意事项: #define 语句 可以 将代码中 LL 换成 l…… 题解列表 2020年09月10日 0 点赞 0 评论 1236 浏览 评分:0.0
A+B for Input-Output Practice (II)-题解(C++代码) 摘要:解题思路: opTimes 表示操作次数,可以作为模板使用~注意事项: 这种格式可以很好的解决 n 次操作的问题(n由题目输入给定),花点时间理解 while(opTime…… 题解列表 2020年09月10日 0 点赞 0 评论 1167 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C++代码) 摘要:解题思路: (都过一年了...最近又想回来看看) 还是很简单的一道题,题意为:若输入的两个操作数都为0则不处理并终止。理所当然地加一个if判断即可。注意事项: …… 题解列表 2020年09月10日 0 点赞 0 评论 652 浏览 评分:0.0
A+B for Input-Output Practice (IV)-题解(C++代码) 摘要:解题思路: 题目还是很简单的,没必要开个数组~注意事项: 看看注释就懂啦参考代码:#include<iostream> using namespace std; int…… 题解列表 2020年09月10日 0 点赞 0 评论 793 浏览 评分:0.0
[编程入门]三个字符串的排序-题解(C语言代码) 摘要:#include<stdio.h>#include<math.h>#include<stdlib.h>#include<string.h>void strshot(char * str[]) //冒泡…… 题解列表 2020年09月10日 0 点赞 0 评论 1672 浏览 评分:0.0
A+B for Input-Output Practice (V)-题解(C++代码) 摘要:解题思路:注意事项: 见注释参考代码:#include<iostream> using namespace std; int main() { // operation …… 题解列表 2020年09月11日 0 点赞 0 评论 592 浏览 评分:0.0