题解列表

筛选

java求平均年龄

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

python--study||O.o

摘要:参考代码:s = input() res = 0 i = 0 while i < len(s) - 1:     if s[i] == s[i + 1] or s[i] == &#39;?&#……

python--study||O.o

摘要:参考代码:n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) c =……

转化为数组

摘要:解题思路:强制类型转换求和注意事项:无参考代码:for i in range(100,1000):    my_str = str(i)    sum = int(my_str[0]) ** 3 + ……

python--study||O.o

摘要:参考代码:t = int(input()) res_min, res_max = 0, 1e10 for _ in range(t):     a, b = map(int, input().s……

python--study||O.o

摘要:参考代码:n = int(input()) arr = list(map(str, input().split())) #dp[i]是以i为数字结尾的最长接龙子序列的长度 dp = [0] * ……

python--study||O.o

摘要:参考代码:#time是之前的飞机降落所需的时间 def dfs(step, time):     if step == n:         return True     for i in ……

STL vector实现快速排序

摘要:解题思路:递归+双指针注意事项: vector索引必须用int, 不能用size_t参考代码:#include<iostream>#include<vector>using namespace std……