兰顿蚂蚁 Python直接思路 摘要:解题思路:注意事项:参考代码:def white(mapList, x, y, direction, steps): mapList[x][y] = 1 if direction …… 题解列表 2021年04月03日 0 点赞 0 评论 591 浏览 评分:9.9
分糖果 错序相加 摘要:解题思路:注意事项:参考代码:一、 按顺序传递 不同时发生(利用列表的前后循环) 超时9 1. 从第一位开始传递一半给最后一位,接着从最后一位开始传递给第二位。依次逆时针传递 …… 题解列表 2021年04月03日 0 点赞 0 评论 785 浏览 评分:9.3
朴实无华的解法,只要你懂结构体,冒泡排序,strcmp函数,就能看得懂。 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>struct student{ char name[101]; int age; …… 题解列表 2021年04月02日 0 点赞 0 评论 429 浏览 评分:0.0
信息学奥赛一本通T1588-数字游戏-题解(C++代码) 摘要: 数位DP板子题(本质记忆化搜索)constexpr auto Inf = 0X3F3F3F3F; #ifndef LOCAL #include <bits/stdc++.h> …… 题解列表 2021年04月02日 0 点赞 0 评论 525 浏览 评分:2.0
容易理解的C语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int gcd(int a, int b)//最大公约数 { if (b == 0) return …… 题解列表 2021年04月02日 0 点赞 0 评论 353 浏览 评分:0.0
回文判断计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int flag=0,i; ge…… 题解列表 2021年04月02日 0 点赞 0 评论 275 浏览 评分:0.0
巨大的数简单算法 摘要:解题思路:注意事项:不需要把数算出来,只要算个位就行参考代码:#include<stdio.h>int main(){ int n,i,sum = 1,ai; scanf("%d"…… 题解列表 2021年04月02日 0 点赞 2 评论 310 浏览 评分:9.9
冒泡排序(c语言) 摘要:###这题比较简单,只排序四个整数,很多初学者可能是用一堆if来做吧。常用的排序算法有三种,分别是桶排序,冒泡排序,快速排序。自行百度吧,这里就不详细介绍了。 ####这题用快速排序显然小题大做了,…… 题解列表 2021年04月02日 0 点赞 3 评论 852 浏览 评分:9.9
蓝桥杯2014年第五届真题-排列序数-题解(C++代码和STL容器)简单高效易懂。 摘要:解题思路:先求出1到10的各个阶乘,再输入字符串,复制该字符串并排序,然后进入循环,详见解析。注意事项:及时除去c中的c[j]可以简化代码复杂度。由于表达能力有限,文字描述不是很好,望各位多多包涵,若…… 题解列表 2021年04月02日 0 点赞 0 评论 500 浏览 评分:9.9
题解 1641: 蓝桥杯算法训练VIP-星际交流 C++ 18行代码 next_permutation 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[10005];int n,m;int mai…… 题解列表 2021年04月02日 0 点赞 0 评论 383 浏览 评分:9.9