最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Python

2023-06-10 21:54 作者:w姓市民  | 我要投稿

fee=float(input())#【_________________________】) heights=[float(k) for k in input().split()]#【____________________________】] all_fee = 0 for h in heights: if 1.5>h>=1.2: all_fee +=fee/2 elif h>=1.5: all_fee +=fee#【_____________________】+= fee print("{:.1f}".format(all_fee)) n=int(input()) sum=0 for i in range(1,n+1): ans = 1#【_____________________】 for j in range(1,i+1): ans *=j sum = ans+sum#【_____________________】 if n==0: print(1) else: print(sum+1)#【_____________________】 a=[x for x in input().split()] n_max=n_min=''#【_____________________】 b=sorted(a) for i in range(len(b)-1,-1,-1): n_max=n_max+b[i] for j in range(0,len(b),1):#【_____________________】: n_min=n_min+b[j]#【_____________________】 print(int(n_max),int(n_min),int(n_max)-int(n_min)) N=int(input ()) x=[int(a) for a in input().split()] sum=0 i = 0#【_____________________】 while i<5: if x[i]%N==0:#【_____________________】 sum = sum+1#【_____________________】 i=i+1 print(sum) n=int(input()) for i in range(10**(n-1),10**n):#【_____________________】): sum=0 k=i for j in range (n) : y=k%10 sum=sum+y**n sum +=int(str(k)[j])**n-y**n#【_____________________】 if sum==i:#【_____________________】 print(i) a=[int(i) for i in input().split()] b=[int(j) for j in input().split()] #【_____________________】] x=1 for aa in a: x = x*aa#【_____________________】 y=1 for bb in b:#【_____________________】: y=y*bb print(x, y) m=int(input ()) a=[int(i) for i in range(1,m+1)] new_a=[] #【_____________________】 while len(a)> 1: if len(a)%2==0: n=len(a)//2 else: n=len(a)//2+1# 【_____________________】 for j in range(0,n): new_a.append(a[j]) del a[j] new_a.append(a[0]) for i in new_a: print(i,end=" ") #【_____________________】 a,b=[int(i) for i in input().split()]#【_____________________】 for i in input().split()] i=a #【_____________________】 while i <= b: if i%2==0:#【_____________________】: print(i, end=" ") i=i+1 words = input().split() lst = []#【_____________________】 i = 0 while i< len(words): tmp = words[i].lower() if tmp not in lst:#【_____________________】: lst.append(tmp) print(tmp,end=' ') i+=1#【_____________________】 n = int(input()) dic = {} for i in range(n): ls= input().split() score = int(ls[-1])#【_________________________】 if len(ls)==2: score *= 1.2 for num in ls[:-1]:#【_________________________】: dic[num] = score lt = [k for k in dic.items()]#【_________________________】] lt.sort() for k, v in lt: print(k, v) m=input() n='' for s in m:#【_____________________】: if s.isdigit(): x=int(s) if x==9: y=0 else: y=1+x#【_____________________】 n=n+str(y)#【_____________________】 else: n=n+s print(n) n=0 ls=[] nums =[int(x) for x in input().split()] for num in nums:#【_____________________】 if num not in ls: print(num, end=' ') ls.append(num)#【_____________________】 n += 1 if n==5: break#【_____________________】 print('Good job!') s = input() sep = ', ? . ; ! :' for x in sep: s = s.replace(x,' ') s = s.lower()#【_____________________】 words = s.split() word_count = {} for w in words: word_count[w] = s.count(w)#【_____________________】 word_count_list = list(word_count.items()) word_count_list.sort(key = lambda x:(x[1],x[0])) for c in word_count_list: print(c[0],c[1]) #【_____________________】) x=[4,5,3,5,6,4] y=[int(a) for a in input().split()] s=0 i=0 while i<6: s = sum(y)#【_____________________】 avg_s = y[i]/x[i]#【_____________________】 print('{:.1f}'.format(avg_s),end=' ') i = i+1 #【_____________________】 print(s) ls=[float(i) for i in input().split()] mx=max(ls) ls.remove(mx)#【_____________________】 mn=min(ls) ls.remove(mn) s=0#【_____________________】 for i in ls: s+=i aver=s/len(ls)#【_____________________】 print ("{:.2f}".format(aver)) a=[int(x) for x in input().split()]#【____________________】for x in input().split()] for i in range(len(a)): if a[i] >= 240: print("優(yōu)秀",end=" ") elif a[i] >= 220:#【____________________】: print("良好",end=" ") elif a[i] >= 180: print("合格",end=" ")#【____________________】 else: print("不合格",end=" ") N = int(input()) i = 1 while i<=N:#【_____________________】: print("#"*i + "*" * i) i+=1#【_____________________】 while i >= 1: print("#"*i + "*" * i)#【_____________________】) i -= 1 a=input().split()#【_____________________】 a=[int(k) for k in a ]#【_____________________】] n=len(a) aver = sum(a)/n k=0 #【_____________________】 for i in range(n): if a[i]>aver: k+=1 print(k) n = input() for i in n:#【_____________________】: if 'a'<=i<='z': s = chr(ord('z')-(ord(i)-ord('a'))%26)#【_____________________】 print(s,end='') elif 'A'<=i<='Z': s = chr((ord(i)-ord('A')+2)%26+ord('A')) print(s,end='') else: print(i,end='')#【_____________________】 s = input() sep = ', ? . ; ! :' for x in sep: s = s.replace(x,' ') s = s.lower()# 【_____________________】 words = s.split() word_count = {} for w in words: word_count[w] = s.count(w)#【_____________________】 word_count_list = list(word_count.items()) word_count_list.sort(key = lambda x:(x[1],x[0])) for c in word_count_list: print(c[0],c[1])#【_____________________】) 程序設(shè)計 a=int(input()) if a%2!=0: print('考場A') else: print('考場B') a=input() dic={'A':'西門','B':'西門','C':'西門',"D":'東門',"E":'東門',"F":'東門',} print(dic[a[0]]) a,b=map(int,input().split()) if a>=5: a=50 if a<=5: a=30 if b<=40: print('{:.2f}'.format(a*b)) else: print('{:.2f}'.format(a*40+(b-40)*a*1.5)) a=list(input().split()) b=list(input().split()) lst=[] for k in a: if k not in b and k.lower() not in b: lst.append(k) print(*lst) a=input() if len(a)==8: print('True') else: print('False') a=int(input()) i=0 while i<=a: b=[int(k) for k in input().split()] print(len(b),max(b),min(b),'{:.1f}'.format(sum(b)/len(b))) i=i+1 a=[int(x) for x in input().split()] b=0 for k in a: if k%4==0 and k%100!=0 or k%400==0: b+=1 print(b) a=int(input()) if a<100: if a<=10: print('0') if 10=35 and b>=80 or (a<35 and b>=90): c+=1 print('晉升') else: print('原崗') if i==a: break print(c) a=[float(x) for x in input().split()] b=[] for k in a: if k<5000: print('{:.2f}'.format(k*1.5),end=' ') else: print('{:.2f}'.format(k+2500),end=' ') a,b,c=input().split() if a=='有非會員': d=1 if a=='普通會員': d=0.9 if a=='銀會員': d=0.95 if a=='金會員': d=0.85 if b=='商品一': e=100 if b=='商品二': e==200 if b=='商品三': e=300 print(int(int(c)*d*e)) a,b=map(int,input().split()) c=0 if a>b: for k in range(b,a+1): if k%2==0: c+=k if a

Python的評論 (共 條)

分享到微博請遵守國家法律
娄底市| 山阴县| 依安县| 泰州市| 上饶县| 抚顺市| 崇仁县| 湘潭县| 枞阳县| 四平市| 德令哈市| 上林县| 舒兰市| 北辰区| 贵定县| 东丰县| 酒泉市| 沐川县| 黑河市| 盐山县| 普格县| 青铜峡市| 东至县| 米脂县| 安泽县| 大兴区| 仁怀市| 昭平县| 花垣县| 南澳县| 林西县| 色达县| 通山县| 西平县| 东港市| 青田县| 凤山县| 绥滨县| 平阳县| 岑巩县| 仙桃市|