Commit f4a56673 by BellCodeEditor

auto save

parent ecc99bdc
n=int(input())
sum=0
while n!=1:
if n%2==0:
n=n/2
else:
n=(3*n+1)/2
sum=sum+1
print(sum)
\ No newline at end of file
n=int(input())
b=n//100
s=(n%100)//10
g=n%10
print("B"*b+"S"*s,end="")
for i in range(1,g+1,1):
print(i,end="")
jia=0
yi=0
for i in range(int(input())):
a,b,c,d=map(int,input().split())
if b==d:
continue
if (a+c)==b:
yi=yi+1
else:
if (a+c)==d:
jia=jia+1
print(jia,yi)
n=int(input())
mi=1010
mx=0
for i in range(0,n,1):
a=int(input())
if a>mx:6
mx=a
if a<mi:
mi=a
print(mx-mi)
jia=0
yi=0
for i in range(int(input())):
a,b,c,d=map(int,input().split())
if (a+c)==b:
if (a+c)!=d:
yi=yi+1
else:
if (a+c)==d:
jia=jia+1
print(jia,yi)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment