From 30941abe2d0ab15701b92b66710995f21a153649 Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Tue, 25 Jul 2023 10:09:41 +0200 Subject: [PATCH] Help a PhD candidate out! --- helpaphd.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 helpaphd.py diff --git a/helpaphd.py b/helpaphd.py new file mode 100644 index 0000000..6054fe7 --- /dev/null +++ b/helpaphd.py @@ -0,0 +1,6 @@ +for _ in range(int(input())): + testcase = input() + if testcase == "P=NP": + print("skipped") + else: + print(sum(map(int, testcase.split("+"))))