[STL训练]A+B Python------十二 摘要:解题思路:用while循环,可不受组数限制。注意事项:引用try......except......进行取数,不受组数限制(防止测试时组数与题干数不同)参考代码:while True: tr…… 题解列表 2022年03月14日 0 点赞 0 评论 578 浏览 评分:9.9
双指针o(n)!! 摘要:```cpp #include using namespace std; int main(){ string s1; getline(cin, s1); int max_…… 题解列表 2022年03月14日 0 点赞 0 评论 602 浏览 评分:9.9
c++特性解决问题 摘要:```cpp #include using namespace std; int main(){ int max_len = -1, index = 0; vectors; …… 题解列表 2022年03月14日 0 点赞 0 评论 457 浏览 评分:0.0
模拟,一道水题 摘要:```cpp #include using namespace std; int main(){ string s1, s2; cin >> s1 >> s2; int le…… 题解列表 2022年03月14日 0 点赞 1 评论 537 浏览 评分: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 评论 465 浏览 评分: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 评论 818 浏览 评分: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 评论 465 浏览 评分: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 评论 347 浏览 评分:0.0
题解 2305: 蓝桥杯2019年第十届省赛真题-等差数列-oj测试数据有误 摘要:解题思路: 找最大公因数注意事项:除数为0参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { …… 题解列表 2022年03月14日 0 点赞 0 评论 513 浏览 评分:0.0
写题解 1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,count2=0; scanf("%d",&n); …… 题解列表 2022年03月14日 0 点赞 0 评论 530 浏览 评分:0.0