From 1b8f7c9d4eb8b767d32dbbbfd96662b73c037627 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Wed, 29 Jun 2022 15:57:29 +0200 Subject: Solved some problem from codechef and codeforces --- codechef/jogging/main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 codechef/jogging/main.py (limited to 'codechef/jogging/main.py') diff --git a/codechef/jogging/main.py b/codechef/jogging/main.py new file mode 100644 index 0000000..d6982e8 --- /dev/null +++ b/codechef/jogging/main.py @@ -0,0 +1,11 @@ +t = int(input()) + +for i in range(t): + n, x = input().split() + n = int(n) + x = int(x) + if n != 1: + print(((x * 2) ** (n - 1)) % 1000000007) + else: + print(x) + -- cgit v1.2.3