[编程入门]完数的判断(含解题思路) 摘要:##[编程入门]完数的判断 ```c #include int main() { int i,b[5000],p=0,s=0; int n,j; scanf("%d",&j); …… 题解列表 2022年03月18日 0 点赞 0 评论 769 浏览 评分:0.0
个人认为比较直观 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,x; scanf("%d",&x); a=x/100; b=x/10…… 题解列表 2022年03月18日 0 点赞 0 评论 612 浏览 评分:0.0
蓝桥杯算法提高VIP-Torry的困惑(提高型) -(Python代码) 解题思路:解决此题的关键就是筛选质数和大数乘取模的方法,普通的筛法无疑是会超时的,现存高效的质数筛选方法有埃氏筛、线性筛等,理论来说线性筛更高效,考虑数据规模并不太大,本题使用埃氏筛来进行质数的筛选,筛法具体的思想就不在此赘述,有兴趣的题友可以自行搜索素数筛;然后再来说说大数乘取模, 题解列表 2022年03月18日 0 点赞 0 评论 930 浏览 评分:0.0
1225:蓝桥杯算法提高-能量项链 摘要:```c #include int main(){ int n,a[120],i,j,x,c,min,left,right; long s=0; scanf("%d",&n); f…… 题解列表 2022年03月18日 0 点赞 0 评论 774 浏览 评分:0.0
用函数 简单题解(C语言) 摘要:解题思路:分三部分 ,①结构体定义②输入函数③输出函数注意事项:传入函数时,是指针而非结构体参考代码:#include<stdio.h> struct student_data{ char num[3…… 题解列表 2022年03月18日 0 点赞 0 评论 562 浏览 评分:0.0
双指针做法 ```cpp#includeusingnamespacestd;sets;strings1;intn,m;intmain(){getline(cin,s1);for(inti=0;i 题解列表 2022年03月19日 0 点赞 0 评论 607 浏览 评分:0.0 用筛法求之N内的素数 摘要:参考代码:#include<iostream>#include<math.h>using namespace std;int main() { int num,k,i; cin>>num; //暴力法…… 题解列表 2022年03月19日 0 点赞 0 评论 576 浏览 评分:0.0 双指针 找单词 ```cpp#includeusingnamespacestd;strings1;intmain(){getline(cin,s1);intsum=0;for(inti=0;i 题解列表 2022年03月19日 0 点赞 0 评论 635 浏览 评分:0.0 图论拓扑排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> //就是一个字符串关系型的拓扑排序 using namespace std; struct node{ int…… 题解列表 2022年03月19日 0 点赞 0 评论 1137 浏览 评分:0.0 蓝桥杯算法提高VIP-快速幂 摘要:基于二进制递归的解题思路#include<iostream>using namespace std;long long a,b;int p;long long pow_mod(long long a,…… 题解列表 2022年03月19日 0 点赞 0 评论 691 浏览 评分:0.0 « 12...1998199920002001200220032004...59235924 »
用筛法求之N内的素数 摘要:参考代码:#include<iostream>#include<math.h>using namespace std;int main() { int num,k,i; cin>>num; //暴力法…… 题解列表 2022年03月19日 0 点赞 0 评论 576 浏览 评分:0.0
双指针 找单词 ```cpp#includeusingnamespacestd;strings1;intmain(){getline(cin,s1);intsum=0;for(inti=0;i 题解列表 2022年03月19日 0 点赞 0 评论 635 浏览 评分:0.0 图论拓扑排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> //就是一个字符串关系型的拓扑排序 using namespace std; struct node{ int…… 题解列表 2022年03月19日 0 点赞 0 评论 1137 浏览 评分:0.0 蓝桥杯算法提高VIP-快速幂 摘要:基于二进制递归的解题思路#include<iostream>using namespace std;long long a,b;int p;long long pow_mod(long long a,…… 题解列表 2022年03月19日 0 点赞 0 评论 691 浏览 评分:0.0 « 12...1998199920002001200220032004...59235924 »
图论拓扑排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> //就是一个字符串关系型的拓扑排序 using namespace std; struct node{ int…… 题解列表 2022年03月19日 0 点赞 0 评论 1137 浏览 评分:0.0
蓝桥杯算法提高VIP-快速幂 摘要:基于二进制递归的解题思路#include<iostream>using namespace std;long long a,b;int p;long long pow_mod(long long a,…… 题解列表 2022年03月19日 0 点赞 0 评论 691 浏览 评分:0.0