枚举法,简单暴力好理解(小白题解) 摘要:解题思路:枚举每一天判断这一天是否符合要求注意事项:10000101 ≤ N ≤ 89991231我们的判断就得是八位数的最大 年份最大为9999参考代码:#include<bits/stdc++.h…… 题解列表 2023年04月05日 0 点赞 0 评论 467 浏览 评分:9.0
一眼顶真,纯纯的nt题,注意加空行就行了 摘要:解题思路:纯纯的nt题,注意加空行就行了注意事项:参考代码:#include<iostream> using namespace std; int main(){ int a,n; c…… 题解列表 2023年04月05日 0 点赞 0 评论 199 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积_C++超简单版!!! 摘要:C++输出三位有效数字需要```cpp #include ```头文件 //其基本格式为 cout b >> c; cout …… 题解列表 2023年04月05日 0 点赞 0 评论 243 浏览 评分:8.0
蓝桥杯2022年第十三届省赛真题-重复的数 摘要:解题思路:离线处理(若一边读一边实时处理则为在线处理),分块思想。注意事项:不要超时参考代码:#include <iostream> #include <vector> #include <set…… 题解列表 2023年04月05日 1 点赞 0 评论 623 浏览 评分:9.9
c++题解,简短 摘要:每加入一条直线,增加的面是交点的个数+1,还有要注意的是重合的线,和平行的线要特别处理一下 ```cpp #include using namespace std; #define ll …… 题解列表 2023年04月05日 0 点赞 0 评论 444 浏览 评分:10.0
蓝桥杯算法训练VIP-JAM计数法 摘要: #include #include using namespace std; string str; int s, w, t; int siz…… 题解列表 2023年04月04日 0 点赞 0 评论 235 浏览 评分: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 评论 209 浏览 评分: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 评论 329 浏览 评分: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 评论 499 浏览 评分: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 评论 266 浏览 评分:9.9