编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。方法一:如果把数列规律认为a/b=2/1;c/d=3/2;m=a+c…… 题解列表 2022年03月14日 0 点赞 0 评论 369 浏览 评分:0.0
清晰明了简洁版代码 摘要:解题思路:注意事项:参考代码:n = int(input())s = ''for i in range(n): a = s s += chr(ord('A'…… 题解列表 2022年03月14日 0 点赞 0 评论 380 浏览 评分:9.9
[STL训练]A+B Python------十二 摘要:解题思路:用while循环,可不受组数限制。注意事项:引用try......except......进行取数,不受组数限制(防止测试时组数与题干数不同)参考代码:while True: tr…… 题解列表 2022年03月14日 0 点赞 0 评论 521 浏览 评分:9.9
双指针o(n)!! 摘要:```cpp #include using namespace std; int main(){ string s1; getline(cin, s1); int max_…… 题解列表 2022年03月14日 0 点赞 0 评论 569 浏览 评分:9.9
c++特性解决问题 摘要:```cpp #include using namespace std; int main(){ int max_len = -1, index = 0; vectors; …… 题解列表 2022年03月14日 0 点赞 0 评论 423 浏览 评分:0.0
模拟,一道水题 摘要:```cpp #include using namespace std; int main(){ string s1, s2; cin >> s1 >> s2; int le…… 题解列表 2022年03月14日 0 点赞 1 评论 511 浏览 评分:9.9
编写题解 2056: 汉诺塔 利用栈和递归解决 摘要:#include <iostream>#include <stack>using namespace std;stack<int> s[3];void move(int x, int y,int n)…… 题解列表 2022年03月14日 0 点赞 0 评论 436 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算(入门版,没有函数) 摘要:解题思路:次数落地后的路程S反弹点H1S(1)=MH(1)=M/22S(2)=M+M/2+M/2=S(1)+2*H(1)H(2)=(M/2)/2=M/22=H(1)/23S(3)=S(2)+2*H(2…… 题解列表 2022年03月14日 0 点赞 1 评论 784 浏览 评分:9.9
蓝桥杯算法提高VIP-勾股数python暴力求解 摘要: for i in range(1,998): for j in range(i+1,998): c = pow((i**2+…… 题解列表 2022年03月14日 0 点赞 0 评论 436 浏览 评分:8.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要://从中间开始循环就行!!#include<iostream>#include<string>using namespace std;string a;int n,i=0;void digui(int…… 题解列表 2022年03月14日 0 点赞 0 评论 321 浏览 评分:0.0