STL vector实现快速排序 摘要:解题思路:递归+双指针注意事项: vector索引必须用int, 不能用size_t参考代码:#include<iostream>#include<vector>using namespace std…… 题解列表 2024年04月21日 0 点赞 0 评论 217 浏览 评分:0.0
python--study||O.o 摘要:参考代码:#time是之前的飞机降落所需的时间 def dfs(step, time): if step == n: return True for i in …… 题解列表 2024年04月21日 0 点赞 0 评论 228 浏览 评分:0.0
python--study||O.o 摘要:参考代码:t = int(input()) res_min, res_max = 0, 1e10 for _ in range(t): a, b = map(int, input().s…… 题解列表 2024年04月21日 0 点赞 0 评论 246 浏览 评分:0.0
给哥哥大苏打大师傅发射点风格如果 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ //比赛n轮,输入n ,小A的周期长度na,小B的周期长度nb…… 题解列表 2024年04月21日 0 点赞 0 评论 155 浏览 评分:0.0
python--study||O.o 摘要:参考代码:n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) c =…… 题解列表 2024年04月21日 0 点赞 0 评论 356 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;const int N=1e7;typedef long long ll;int a[N];…… 题解列表 2024年04月21日 0 点赞 0 评论 151 浏览 评分:0.0
python--study||O.o 摘要:参考代码:s = input() res = 0 i = 0 while i < len(s) - 1: if s[i] == s[i + 1] or s[i] == '?&#…… 题解列表 2024年04月21日 0 点赞 0 评论 302 浏览 评分:0.0
java求平均年龄 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年04月21日 0 点赞 0 评论 262 浏览 评分:0.0
2901: 查找特定的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e7;ll a[N…… 题解列表 2024年04月21日 0 点赞 0 评论 185 浏览 评分:0.0
题解 3020: 最大数位置 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e7;ll a[N];in…… 题解列表 2024年04月21日 0 点赞 0 评论 313 浏览 评分:0.0