From bc2ef0e085706ffe4f3e7d962370038b34484e88 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Fri, 17 Jan 2025 13:38:29 +0000 Subject: [PATCH] refactor: cleanup 268B --- solutions/python/268B.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 solutions/python/268B.py diff --git a/solutions/python/268B.py b/solutions/python/268B.py new file mode 100644 index 0000000..32b6591 --- /dev/null +++ b/solutions/python/268B.py @@ -0,0 +1,3 @@ +n = int(input()) + +print(round((n-1)*n*(n+1)/6+n))