#A apple=list(map(int,input().split())) height=int(input())+30 count=0 for i in apple: if height>=i: count+=1 print(count) #B L,M=map(int,(input().split())) count=0 lst=[1 for i in range(L+1)] for j in range(M): a,b=map(int,input().split()) for k in range(a,b+1): lst[k]=0 for each in range(L+1): if lst[each]==1: count+=1 print(count) #C num=int(input()) lst=list(map(int,input().split())) lst=list(set(lst)) lst.sort() print(len(lst)) for i in lst: print(i,end=" ") #D import math a,b,c=map(int,input().split()) num=b**2-4*(a*c) x1=(-b+math.sqrt(num))/2*a x2=(-b-math.sqrt(num))/2*a print("%.2f %.2f"%(x1,x2)) #E alp=input() b=[] for i in alp: if i.isalpha(): b.append(i) for i in b: print(i,end="") #F #G N=int(input()) def prime(n): if n < 2: pass else: for i in range(2, n): if n % i == 0: break else: print(n) for i in range(N+1): prime(i) #H N=int(input()) s=100 t=200 if N==1: s=100 else: while N>1: t=t/2 s=s+t N-=1 print("%.4f"%s) #I #j try: while 1: a,b=map(int,input().split()) print(a+b) except EOFError: pass
0.0分
0 人评分
C二级辅导-统计字符 (C语言代码)浏览:532 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:567 |
C语言程序设计教程(第三版)课后习题7.5 (C语言代码)浏览:639 |
【金明的预算方案】 (C++代码)浏览:837 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:667 |
C语言程序设计教程(第三版)课后习题9.1 (C语言代码)浏览:681 |
C语言训练-亲密数 (C语言描述,反正怎么都能对)浏览:2155 |
程序员的表白 (C语言代码)浏览:587 |
拆分位数 (C语言代码)浏览:514 |
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)浏览:549 |