更新实验1的1-3题

This commit is contained in:
Luthics 2022-10-23 13:19:10 +08:00
parent 1fe9b28299
commit 85de2d302a
3 changed files with 7 additions and 0 deletions

1
test/1/1.py Normal file
View File

@ -0,0 +1 @@
print("My Xi'an Jiaotong University")

2
test/1/2.py Normal file
View File

@ -0,0 +1,2 @@
a, b = map(float, input().split())
print(a+b)

4
test/1/3.py Normal file
View File

@ -0,0 +1,4 @@
from math import *
a, b = map(float, input().split())
print("{:.2f}".format(sqrt(a**2+b**2)))