题解列表

筛选

3048: 抓住那头牛

摘要:解题思路: BFS: 三种移动方向 + 1, - 1, 2 * x注意事项:参考代码:#include<iostream> #include<cstring> using namespace st……

特殊的质数肋骨(c语言)

摘要:解题思路:首位只能是{2,3,5,7}这四个数字,后面每一位都只能是{1,3,7,9},因此我从前往后的判断,比如2头,然后我循环判断2*10+1,2*10+3,2*10+7,2*10+9是否为质数,……

只用if_else不用循环,注释详细

摘要:解题思路:用总刷题数除以一周的刷题总数,从而将天数问题转化为一个周期内的分段问题注意事项:注意分段做到不重不漏参考代码:#include<bits/stdc++.h> #define ll long……

题解 2701 取模C语言

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> in……

2835: 计算书费

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;double a[10]= { 28.9,32.7,45.6,78,35,86.2……

蓝桥杯算法提高-能量项链

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int n, i, k, left, right;    int arr[200], min;    l……