用辗转相除法也可以算,菜鸟运算 摘要:参考代码#include<stdio.h>int main(){int a,b;int t,c;scanf("%d %d",&a,&b);int i,j;i=a,j=b;while(b!=0){ t=…… 题解列表 2023年04月04日 0 点赞 0 评论 378 浏览 评分:9.9
大模拟题,使用结构体和sort以及闰年判断 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<algorithm> using namespace std; stru…… 题解列表 2023年04月04日 0 点赞 0 评论 401 浏览 评分:9.9
1278: [NOIP2008]传纸条 摘要:```cpp #include using namespace std; int n,m,a[52][52],f[52][52][52][52]; namespace qaq { …… 题解列表 2023年04月04日 0 点赞 0 评论 521 浏览 评分:9.9
1279: [NOIP2008T2]火柴棒等式 摘要:```cpp #include using namespace std; int nu[10]={6,2,5,5,4,5,6,3,7,6}; int matches(int num) { …… 题解列表 2023年04月04日 0 点赞 0 评论 433 浏览 评分:9.9
3048: 抓住那头牛 摘要:```cpp #include using namespace std; int n,k; int dfs(int t) { if(t>n>>k; int s=0; …… 题解列表 2023年04月04日 0 点赞 0 评论 739 浏览 评分:9.9
1280: 找啊找啊找GF 摘要:```cpp #include using namespace std; int rmb[1001],rp[1001],t[1001],f[101][101],mint[101][101]; …… 题解列表 2023年04月04日 0 点赞 0 评论 493 浏览 评分:9.9
粗暴的九层循环遍历求解 摘要:```c #include int main(void) { int z_rank[3] = { 0 }; int w_rank[3] = { 0 }; int l_rank[3…… 题解列表 2023年04月04日 0 点赞 0 评论 477 浏览 评分:0.0
nlogn(排序),前缀和解法蓝桥杯2022年第十三届省赛真题-最少刷题数, 摘要:解题思路:利用一个100000的数组存每个数字出现的次数,然后使用前缀和一次,计算出前缀和之后就能在O(1)的复杂度的时间内求出比当前小的数有几个,相等的有几个,大的有几个排序后找出中位数判断当前数是…… 题解列表 2023年04月04日 0 点赞 0 评论 590 浏览 评分:2.0
c++深度优先搜素 摘要:#include<iostream> using namespace std; int m,n,cnt=0,sum=0,step=0,ans=9999999; int dx[5]={0,-1,1…… 题解列表 2023年04月04日 0 点赞 0 评论 471 浏览 评分:0.0
蓝桥杯算法训练VIP-JAM计数法 摘要: #include #include using namespace std; string str; int s, w, t; int siz…… 题解列表 2023年04月04日 0 点赞 0 评论 420 浏览 评分:9.9