用位运算实现最快速的代码,不服来战(不建议新手进来) 摘要: #include using namespace std; inline int gcd(int a, int b) { while (b ^= a…… 题解列表 2022年01月24日 0 点赞 0 评论 601 浏览 评分:9.9
优质题解 python-表格计算 摘要:解题思路:递归调用。①首先对表格中所有值转化为浮点型,当转化不成功是,我们知道这处表格是一个字符串。然后调用字符串处理函数②调用字符串处理函数的过程和①类似,先将数字转化成浮点型,然后进行计算,转化不…… 题解列表 2022年01月24日 0 点赞 0 评论 592 浏览 评分:9.9
2194: 蓝桥杯2018年第九届真题-递增三元组 摘要:解题思路:注意事项:参考代码:n = int(input()) a=list(map(int,input().split())) b=list(map(int,input().split())) …… 题解列表 2022年01月25日 0 点赞 1 评论 484 浏览 评分:9.9
Benajm1n:蓝桥杯2018年第九届真题-次数差(Java代码) 摘要:参考代码:import java.util.*; public class Main { public static void main(String[] args) { Scan…… 题解列表 2022年01月25日 0 点赞 0 评论 283 浏览 评分:9.9
优质题解 路径之谜(迷宫问题 DFS 每步详细解答) 摘要:| |(x-1,y)| | | ------------ | ------------ | ------------ | |(x,y-1)|**( x , y )**|(x,y+1)| …… 题解列表 2022年01月25日 0 点赞 2 评论 1141 浏览 评分:9.9
欧拉筛C++语言版本 摘要:#include<bits/stdc++.h> using namespace std; #define max 10000 bool a[max]; int main(){ …… 题解列表 2022年01月25日 0 点赞 0 评论 439 浏览 评分:9.9
python-P0101(字符串处理方法,简单易懂) 摘要:解题思路:按照字符串进行处理。0要按照特殊情况处理。普通情况:①将计算结果转化为字符串,此处转化后的字符串命名为s②取科学计数法前面的数,并保留6位小数num = float(s[:-5]),num …… 题解列表 2022年01月25日 0 点赞 0 评论 529 浏览 评分:9.9
冒泡排序优化C++版本 摘要:#include<bits/stdc++.h> using namespace std; void bubblesort(int a[],int n){ bool flag = 1; …… 题解列表 2022年01月25日 0 点赞 0 评论 468 浏览 评分:9.9
递归求解算法C++版本 摘要:#include<bits/stdc++.h> using namespace std; int gcd(int m,int n){ int min = m < n ? m : n, …… 题解列表 2022年01月25日 0 点赞 0 评论 347 浏览 评分:9.9
母牛生子数组 摘要:解题思路:定义数组a[4],分别表示为一岁两岁三岁四岁,四岁时可以生小母牛,则a[3]+=a[2],a[2]=a[1],a[1]=a[0],a[0]=a[3];注意事项:参考代码:#include<s…… 题解列表 2022年01月25日 0 点赞 0 评论 362 浏览 评分:9.9