From 7e8293b3038701eb54604520fd7e8382256ba92b Mon Sep 17 00:00:00 2001 From: TooYoungTooSimp <6648049+TooYoungTooSimp@users.noreply.github.com> Date: Sat, 7 Oct 2017 22:27:05 +0800 Subject: [PATCH] Sat, 07 Oct 2017 22:27:05 +0800 --- OnlineJudges/Codeforces/CF869/a.py | 1 + OnlineJudges/Codeforces/CF869/b.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 OnlineJudges/Codeforces/CF869/a.py create mode 100644 OnlineJudges/Codeforces/CF869/b.py diff --git a/OnlineJudges/Codeforces/CF869/a.py b/OnlineJudges/Codeforces/CF869/a.py new file mode 100644 index 0000000..d603d08 --- /dev/null +++ b/OnlineJudges/Codeforces/CF869/a.py @@ -0,0 +1 @@ +print("Karen") diff --git a/OnlineJudges/Codeforces/CF869/b.py b/OnlineJudges/Codeforces/CF869/b.py new file mode 100644 index 0000000..5134a03 --- /dev/null +++ b/OnlineJudges/Codeforces/CF869/b.py @@ -0,0 +1,8 @@ +a, b = map(int, input().split()) +if b - a >= 10: + print(0) +else: + ans = 1 + for i in range(a + 1, b + 1): + ans = ans * i % 10 + print(ans)