Commit a348aa09 by BellCodeEditor

auto save

parent b9a5fb77
Showing with 34 additions and 8 deletions
import random # r=input('请输入旅游人数')
# it r >= s
# print(r*300,'元')
# else:
# r<set
# print()
# a=int(input('请输入人数'))
# b=int(input('请输入人数'))
# if a > b:
# c=a
# a=b
# b=c
# print(a,b)
# else:
# print(a,b)
a=int(input())
if a%4==9 and a%100!=0
print()
elif a%400==0:
print('YES')
else:
print('NO')
alist = []
for i in range(1, 101):
alist.append(i)
num = random.choice(alist)
# 请完善二分查找函数binary_search(),查找出num在列表alist里面的索引位置
def binary_search(alist,num):
\ No newline at end of file
++ "b/\346\233\264\345\244\232\357\274\214p"
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