for循环实现,12行代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; str…… 题解列表 2022年03月27日 0 点赞 0 评论 412 浏览 评分:9.9
蓝桥杯基础练习VIP-龟兔赛跑预测Python版 摘要:解题思路:注意事项:参考代码:#蓝桥杯基础练习VIP-龟兔赛跑预测Python版 v1,v2,t,s,l = map(int,input().strip().split()) x1,x2,time…… 题解列表 2022年03月27日 0 点赞 0 评论 659 浏览 评分:9.9
猴子吃桃题解 摘要:解题思路:审题通过函数完成递推算法注意事项:注意递推算式的函数算法,2*(sheng(n+1,N)+1);,和此题要求要一致参考代码:#include<iostream>using namespace…… 题解列表 2022年03月27日 0 点赞 0 评论 415 浏览 评分:9.9
利用扩展的列表,集中处理 摘要:解题思路:通过列表扩展,利用队列中只有一个断号和重复的,且整个队列是连续的特性解决注意事项:没有,这个方法很棒参考代码:# 错误票据N=int(input())data=[]for i in rang…… 题解列表 2022年03月27日 0 点赞 0 评论 353 浏览 评分:9.9
有手就行之Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,a=2,i,s=2; scanf("%d",&n); for(i=1; i<n; i++) { …… 题解列表 2022年03月27日 0 点赞 1 评论 584 浏览 评分:9.9
编写题解 1150: C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:注意事项:参考代码:#include #include using namespace std; int main() { int n; double sum =…… 题解列表 2022年03月27日 0 点赞 0 评论 789 浏览 评分:9.9
利用getline()和istringstream()解决字符串读入空格问题 摘要: #include #include //STL中的set #include using namespace std; int main() …… 题解列表 2022年03月27日 0 点赞 0 评论 635 浏览 评分:9.9
九宫重排【Python】【BFS+降维+hash判重】 摘要:```python from collections import deque from typing import List direct = [3, -3, -1, 1] def chec…… 题解列表 2022年03月27日 0 点赞 0 评论 1019 浏览 评分:9.9
三角形 基础Dp 摘要:**题目里说的是,每一步只能由当前位置向左下或右下,结果应该是右下和正下** 很基础的Dp,注意每次结算完后把数组初始化,其实也可以使用**一维Dp滚动数组优化空间**,太懒了,不想搞 代码如下,…… 题解列表 2022年03月27日 0 点赞 0 评论 422 浏览 评分:9.9
分分钟的碎碎念 序列型动态规划 摘要:序列型动态规划 **关键是寻找父亲节点,子节点长度在父亲节记录的长度+1** ```cpp #include #include #include using namespace std; …… 题解列表 2022年03月28日 0 点赞 0 评论 393 浏览 评分:9.9