list1 = list(input().split())
m = list1[0]
a = list1[1]
b = int(list1[2])
def jia():
return a + b
def jian():
return a - b
def cheng():
return a * b
def chu():
return a // b
if a and b <= 10:
if m == '+':
print(jia())
elif m == '-':
print(jian())
elif m == '*':
print(cheng())
elif m == '/':
print(chu())
while True:
try:
en = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
n,m = map(int,input().split(" "))
for i in range(0,n):
if i == 0:
print(en[0:m])
else:
s = en[i:0:-1] + en
print(s[0:m])
except:
break
区间K大数查询
n = input()
s = list(map(int,input().split())) #放在列表里
m = int(input())
for i in range(0,m):
l,r,K = map(int,input().split())
list = s[l-1:r]
list.sort(reverse=True)
print(list[K-1])
圆的面积
import math #引入π
r = int(input())
s = math.pi * r * r
print("{:.7f}".format(s))#保留小数
寻找数组中的最大值
a = int(input())
array = list(map(int,input().split())) #放在列表里
print(max(array),array.index(max(array)))
前缀表达式list1 = list(input().split())m = list1[0]a = list1[1] b = int(list1[2])def jia(): return a + bdef jian(): return a - bdef cheng(): return a * bdef chu(): return a // bif a and b <= 10: if m == '+': print(jia())