From 85de2d302a52ba34cc7854084c46c07fd34744b6 Mon Sep 17 00:00:00 2001 From: Luthics Date: Sun, 23 Oct 2022 13:19:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AE=9E=E9=AA=8C1=E7=9A=841?= =?UTF-8?q?-3=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/1/1.py | 1 + test/1/2.py | 2 ++ test/1/3.py | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 test/1/1.py create mode 100644 test/1/2.py create mode 100644 test/1/3.py diff --git a/test/1/1.py b/test/1/1.py new file mode 100644 index 0000000..1494637 --- /dev/null +++ b/test/1/1.py @@ -0,0 +1 @@ +print("My Xi'an Jiaotong University") diff --git a/test/1/2.py b/test/1/2.py new file mode 100644 index 0000000..77dfb14 --- /dev/null +++ b/test/1/2.py @@ -0,0 +1,2 @@ +a, b = map(float, input().split()) +print(a+b) diff --git a/test/1/3.py b/test/1/3.py new file mode 100644 index 0000000..6659be3 --- /dev/null +++ b/test/1/3.py @@ -0,0 +1,4 @@ +from math import * + +a, b = map(float, input().split()) +print("{:.2f}".format(sqrt(a**2+b**2)))