编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct date{ int year; int month; int …… 题解列表 2022年03月13日 0 点赞 0 评论 371 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[20],b[20]; int n,m; …… 题解列表 2022年03月13日 0 点赞 0 评论 347 浏览 评分:0.0
思路很简单,重要的就是要细心。 摘要:解题思路: 这一道题目其实对我来说最重要的就是要有敏锐的观察力,能观察到这个数列的规律,每一个项就是每一项的规律,然后然后其实音乐就知道是要用到循环,但是不知道要怎么用,然后就参考了那个别人的体检,别…… 题解列表 2022年03月13日 0 点赞 0 评论 384 浏览 评分:9.9
优质题解 1100: 采药(背包问题) 摘要:解题思路:属于背包问题,用动态规划的思想求解。核心计算公式:t时间内考虑m个草药并且选择“采”的价值,计算公式为:(t - 第m个草药的耗时)时间内考虑(m - 1)个草药的最有解 + 第m个草药的价…… 题解列表 2022年03月13日 0 点赞 0 评论 1688 浏览 评分:7.0
时间换算!!!! 摘要:```cpp #include using namespace std; long long n; int shi, fen, miao; int main(){ cin >> n; …… 题解列表 2022年03月13日 0 点赞 0 评论 787 浏览 评分:9.9
1099: 校门外的树 摘要:解题思路:暴力解法,建一个大小为n的数组存储树的状态。时间复杂度是O(n),题解里面那个扫描线差分我还没看懂。注意事项:太暴力太丑陋了。参考代码:// 题目 1099: 校门外的树 #include…… 题解列表 2022年03月13日 0 点赞 1 评论 299 浏览 评分:9.9
优质题解 1840: 蓝桥杯2015年第六届真题-赢球票(3.13) 摘要:解题思路:模拟题目描述的过程,暴力法注意事项:在遍历时要注意,因为每当索引与数字相同时都要,拿掉这张卡片,如果用数组存储卡片索引的话,要找到这张卡片并保证数组索引不越界较为困难和繁琐,换个思路--题目…… 题解列表 2022年03月13日 0 点赞 0 评论 964 浏览 评分:0.0
蓝桥杯基础练习VIP-回形取数 dfs 摘要:解题思路: K控制方向注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int arr[201][201]; int vis[20…… 题解列表 2022年03月13日 0 点赞 0 评论 324 浏览 评分:0.0
dfs!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 摘要:```cpp #include using namespace std; string s1; int arr[100][100]; int vis[100][100] = {0}; in…… 题解列表 2022年03月13日 0 点赞 0 评论 428 浏览 评分:9.9
如何用for循环解决数字的处理与判断 摘要:解题思路:很简单,相信各位程序员们看完代码一目了然!注意事项:for循环和数组的使用参考代码:#include <iostream>using namespace std;int main(){ in…… 题解列表 2022年03月13日 0 点赞 0 评论 402 浏览 评分:0.0