BASIC-1 闰年判断
n=int(input())
if n%4==0 and n%100!=0 or n%400==0:
print('yes')
else:
print('no')
BASIC-2 01字串
for a in range(2):
for b in range(2):
for c in range(2):
for d in range(2):
for e in range(2):
print(str(a)+''+str(b)+''+str(c)+''+str(d)+''+str(e))
BASIC-3 字母图形
n,m=map(int,input().split())
listr='ZYXWVUTSRQPONMLKJIHGFEDCBABCDEFGHIJKLMNOPQRSTUVWXYZ'
listm=[]
for i in range(m):
listm.append(listr[i])
listms=listm+listm
for i in range(n):
for j in range(25-i,25+m-i):
print(listr[j],end='')
print()
BASIC-4 数列特征
n=int(input())
lists=list(map(int,input().split())