In [ ]:
def s(x):
    i=1
    total=1
    while i<=x:
        total=total*i
        i=i+1
    return total

m=int(input())
n=int(input())
k=int(input())

print(s(m)+s(n)+s(k))

In [ ]:
def f(n):
    i=0
    total=0
    while i<n:
        total=total+{(-1)^[(n-1)/2]}/n
        i=i+1
    return total
m=1000
a=4*f(m)
k=100000
b=4*f(k)
print(a)
print(b)

In [ ]:
def f(month,day)
if (month==1 and day>=20)or(month==2 and day<=18):
    t=11
elif (month==2 and day>=19)or(month==3 and day<=20):
    t=12
elif (month==3 and day>=21)or(month==4 and day<=19):
    t=1
elif (month==4 and day>=20)or(month==5 and day<=20):
    t=2
elif (month==5 and day>=21)or(month==6 and day<=21):
    t=3
elif (month==6 and day>=22)or(month==7 and day<=22):
    t=4
elif (month==7 and day>=23)or(month==8 and day<=22):
    t=5
elif (month==8 and day>=23)or(month==9 and day<=22):
    t=6
elif (month==9 and day>=23)or(month==10 and day<=23):
    t=7
elif (month==10 and day>=24)or(month==11 and day<=22):
    t=8
elif (month==11 and day>=23)or(month==12 and day<=21):
    t=9
elif (month==12 and day>=22)or(month==1 and day<=19):
    t=10
return t  
name=input('输入你的名字')
x=int(input('月份'))
y=int(input('日期'))
print(name)
t=f(x,y)
if t==1:
    print('白羊座')
if t==2:
    print('金牛座')
if t==3:
    print('双子座')
if t==4:
    print('巨蟹座')
if t==5:
    print('狮子座')
if t==6:
    print('处女座')
if t==7:
    print('天秤座')
if t==8:
    print('天蝎座')
if t==10:
    print('射手座')
if t==11:
    print('摩羯座')
if t==12:
    print('水瓶座')

In [ ]:
def f(x):
    if x.endswith('s') or x.endswith('x') or x.endswith('sh') or x.endswith('ch'):
        x=x+'es'
    else:
        x=x+'s'
    return x
x=str(input())
print(f(x))