蓝桥杯算法训练VIP-s01串 摘要:解题思路:注意事项:不能只用s一个字符串,会混淆参考代码:n = int(input())a = '0's = '0'for i in range(n): a =…… 题解列表 2023年03月22日 0 点赞 0 评论 371 浏览 评分:0.0
巧用python datetime包解决以及打表输出ABABBABA型 摘要:解题思路:注意事项:参考代码:from datetime import datetime,timedeltan=input()a=int(n[:4])b=int(n[4]+n[5])c=int(n[6…… 题解列表 2023年03月22日 0 点赞 0 评论 364 浏览 评分:0.0
sort 和 二分 提一句 上面jcent的计数排序思路太秒了 很牛 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100000];int m,n;//下面为二分模板 int search…… 题解列表 2023年03月22日 0 点赞 0 评论 401 浏览 评分:0.0
1315————田忌赛马(仿写题解) 摘要: import java.util.Scanner; import java.util.LinkedList; import java.util.Collections; …… 题解列表 2023年03月22日 0 点赞 0 评论 412 浏览 评分:0.0
字符串分类统计C++ 摘要:解题思路:采用for循环输入,用gets而不用cin可以 输入空格注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ in…… 题解列表 2023年03月22日 0 点赞 0 评论 310 浏览 评分:0.0
LikeWater - 1094: 字符串的输入输出处理 摘要:```cpp #include #include using namespace std; int main(){ int N; string str; cin>>N; g…… 题解列表 2023年03月22日 0 点赞 0 评论 299 浏览 评分:0.0
求和训练C++ 摘要:解题思路:采用多重for循环进行三次循环相加注意事项:结尾输出必须采用精确小数点函数,否则会因为float限制而造成输出一位小数参考代码:#include<bits/stdc++.h>using na…… 题解列表 2023年03月22日 0 点赞 0 评论 334 浏览 评分:0.0
大数整除:竖式法计算 摘要:  #include #include #include …… 题解列表 2023年03月22日 0 点赞 0 评论 390 浏览 评分:0.0
LikeWater - 1095: The 3n + 1 problem 摘要:#####这题挺搞心态的,题目样例全是a小于b结果提交测试里面会有a大于b的情况,然后导致出错,要是有执拗的人不想看题解真要被折磨半天,题目应该提示一下,不然很烦。 ```cpp #inclu…… 题解列表 2023年03月22日 0 点赞 0 评论 504 浏览 评分:0.0
记忆化搜索(Python题解) 摘要:解题思路:注意事项:参考代码:def dfs(n,step): for i in range(n//2+1): if exist[i]: # 存在直接用 ta…… 题解列表 2023年03月22日 0 点赞 0 评论 636 浏览 评分:0.0