python 長這樣~
from sys import stdinstdin.readline()for line in stdin: a,b,c = (int(i) for i in line.split()) print((b+c,b-c,b*c,b//c)[a-1])
是說python3.10就有match了