蓝桥杯算法训练VIP-JAM计数法 摘要: #include #include using namespace std; string str; int s, w, t; int siz…… 题解列表 2023年04月04日 0 点赞 0 评论 246 浏览 评分:9.9
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 评论 217 浏览 评分:0.0
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 评论 337 浏览 评分: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 评论 511 浏览 评分: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 评论 275 浏览 评分: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 评论 332 浏览 评分:9.9
大模拟题,使用结构体和sort以及闰年判断 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<algorithm> using namespace std; stru…… 题解列表 2023年04月04日 0 点赞 0 评论 172 浏览 评分:9.9
小明A+B之不会百位以上加减却会自动取余的人类幼崽(难绷) 摘要:解题思路:直接取余100就是了注意事项:对于限制输入次数的用while(n--)就完事了参考代码:#include <iostream> using namespace std; int main…… 题解列表 2023年04月04日 0 点赞 0 评论 167 浏览 评分:0.0
鸡兔同笼问题保留输出结果为整数 摘要:解题思路:思路简单不说了注意事项:int型相除会保留整数位,舍去小数位主要问题是整数型相除保留整数输出问题;用取余保证余数为0就解决了对于增加的c,d,e,f....加循环就是了,基本都是保证最后的未…… 题解列表 2023年04月04日 0 点赞 0 评论 228 浏览 评分:0.0
蓝桥杯回文数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int f(int n){ int sum=0; while(n>0){ sum+…… 题解列表 2023年04月04日 0 点赞 0 评论 208 浏览 评分:0.0