蓝桥杯算法训练VIP-黑色星期五-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stido.h>int main(){ int a[12]={31,29,31,30,31,30,31,31,30,31,30,31}; int b[1…… 题解列表 2020年09月26日 0 点赞 0 评论 913 浏览 评分:9.9
误落迷宫-题解(Java代码) 摘要:坑题,题目描述不清楚。1:“ 接下来n行每行两个数字表示相互连通的点”,题目说相互连通容易误解为两个顶点可以相互畅通,其实只是a点到b点,b不能到a。2: 题目没有说明接下来输入的n行数字的范围,通过…… 题解列表 2020年09月26日 0 点赞 3 评论 369 浏览 评分:9.9
[编程入门]分段函数求值-题解(双题解,Python代码) 摘要:题解一: ```python x=int(input()) if x=1 and x…… 题解列表 2020年09月26日 0 点赞 1 评论 1615 浏览 评分:6.0
[编程入门]三个数最大值-题解(双题解,Python代码) 摘要:题解一: ```python a, b, c= map(int,input().split()) #表示的是一次能够输入多个值,依照空格进行分割。(输入不够三个数则不能按回车) sum = […… 题解列表 2020年09月26日 0 点赞 2 评论 2902 浏览 评分:8.8
字符求(C语言代码) 摘要:解题思路: 2^32次方有点大 用longlong定义的话求余比较麻烦,所以就用字符串,再将字符化为数字求和注意事项: 参考代码:#include<stdlib.h> #include<str…… 题解列表 2020年09月26日 0 点赞 0 评论 861 浏览 评分:0.0
[编程入门]第一个HelloWorld程序!-题解(双题解,Python代码) 摘要:题解一: ```python print("**************************") print("Hello World!") print("****************…… 题解列表 2020年09月26日 0 点赞 0 评论 1697 浏览 评分:7.8
[竞赛入门]简单的a+b-题解(双题解,Python代码) 摘要:题解一: ```python while True: #while True 语句中一定要有结束该循环的break语句,否则会一直循环下去的 try: #Python 中,用…… 题解列表 2020年09月26日 0 点赞 0 评论 2960 浏览 评分:8.0
三位数分解-题解(C++代码) 摘要:解题思路:递归注意事项:参考代码:#include<iostream>using namespace std;void f(int);int main(){ int x; cin >> x; f(x)…… 题解列表 2020年09月26日 0 点赞 0 评论 642 浏览 评分:5.5
蛇行矩阵-题解(C语言代码) 摘要: #蛇形矩阵问题 ##解题思路:这道题我没有想大佬们一样按行找数的规律,这里我用了一个可以自增的count不断为数组元素赋值即:count从2开始变化(a[0][0]=1需要自己赋),我们发现,a…… 题解列表 2020年09月26日 0 点赞 0 评论 560 浏览 评分:0.0
IP判断-题解(C++代码) 摘要:参考代码:#include#include#includeusing namespace std; string data[10000]; bool flag; int sum,t; int …… 题解列表 2020年09月26日 0 点赞 0 评论 734 浏览 评分:0.0