题解列表

筛选

编写题解 1179: 上车人数

摘要:解题思路:注意事项:参考代码:a,n,m,x=map(int,input().split()) up=[a] def get(a,x,z):     up=[a,x]     down=[0,……

DNA题目详解

摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n):    m,v = map(int,input().split())    for j in rang……

编写题解 1180: 不容易系列

摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n):     a=int(input())     y=3     for j in range(a……

编写题解 1173: 计算球体积

摘要:解题思路:注意事项:参考代码:while True:     try:         r=float(input())         print('%.3f'%((4/3)*……

1172: 计算两点间的距离

摘要:解题思路:直角三角形,三条边的关系:两直边平方和等于斜边平方注意事项:参考代码:while True:     try:         x1,y1,x2,y2=map(int,input().s……

编写题解 1171: 蟠桃记

摘要:解题思路:注意事项:参考代码:while True:     try:         n=int(input())         ls=[1]         for i in&nb

淘淘的名单python

摘要:解题思路:利用字典和try语句注意事项:要用strip()删除多余的空格参考代码:N=int(input())a={}a["WYS"]="KXZSMR"a["CQ"]="CHAIQIANG"a["LC……

python-和最大子序列

摘要:解题思路:遍历数组中的所有数,时刻更新前i个数的最大子序列和。注意事项:参考代码:from cmath import inf      def f(n):       A = [int(i) f……