From b57cf7c84ac735f0ff67f8ef9de7a47db68c37d6 Mon Sep 17 00:00:00 2001 From: Amin Javan <81846396+MrJavan@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:49:20 +0330 Subject: [PATCH 1/3] add solve-MrJavan.py --- strings/tfcctf2023-dizzy/solve-MrJavan.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 strings/tfcctf2023-dizzy/solve-MrJavan.py diff --git a/strings/tfcctf2023-dizzy/solve-MrJavan.py b/strings/tfcctf2023-dizzy/solve-MrJavan.py new file mode 100644 index 0000000..af9ac38 --- /dev/null +++ b/strings/tfcctf2023-dizzy/solve-MrJavan.py @@ -0,0 +1,11 @@ +text = "T4 l16 _36 510 _27 s26 _11 320 414 {6 }39 C2 T0 m28 317 y35 d31 F1 m22 g19 d38 z34 423 l15 329 c12 ;37 19 h13 _30 F5 t7 C3 325 z33 _21 h8 n18 132 k24" +list = text.split(' ') + +Decoded = [' ']* len(list) +for i in list: + key = int(i[1:]) + value = i[0] + Decoded[key] = value + +Decoded = "".join(Decoded) +print(Decoded) \ No newline at end of file From 142be4a73add2a0e38b53e374a8b0ed61fbf00f0 Mon Sep 17 00:00:00 2001 From: Amin Javan <81846396+MrJavan@users.noreply.github.com> Date: Sat, 21 Dec 2024 15:25:29 +0330 Subject: [PATCH 2/3] solve by MrJavan --- strings/tfcctf2023-MAYDAY/solve-MrJavan.py | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 strings/tfcctf2023-MAYDAY/solve-MrJavan.py diff --git a/strings/tfcctf2023-MAYDAY/solve-MrJavan.py b/strings/tfcctf2023-MAYDAY/solve-MrJavan.py new file mode 100644 index 0000000..288bc10 --- /dev/null +++ b/strings/tfcctf2023-MAYDAY/solve-MrJavan.py @@ -0,0 +1,32 @@ +text = "Whiskey Hotel Four Tango Dash Alpha Romeo Three Dash Yankee Oscar Uniform Dash Sierra One November Kilo India November Golf Dash Four Bravo Zero Uniform Seven" + +list = text.split(' ') + +def num_check(num): + if num == "Zero": + return 0 + elif num == "One": + return 1 + elif num == "Two": + return 2 + elif num == "Three": + return 3 + elif num == "Four": + return 4 + elif num == "Five": + return 5 + elif num == "Six": + return 6 + elif num == "Seven": + return 7 + elif num == "Eight": + return 8 + elif num == "Nine": + return 9 + elif num == "Dash": + return '-' + else: + return num[0] + +for i in list: + print(num_check(i), end='') \ No newline at end of file From 4f09f51f1ef780deadaf940b4b40b07b6bb89387 Mon Sep 17 00:00:00 2001 From: Amin Javan <81846396+MrJavan@users.noreply.github.com> Date: Sat, 21 Dec 2024 16:11:17 +0330 Subject: [PATCH 3/3] add file solve-MrJavan.py --- math/111-999-two-digits-no-zero/solve-MrJavan.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 math/111-999-two-digits-no-zero/solve-MrJavan.py diff --git a/math/111-999-two-digits-no-zero/solve-MrJavan.py b/math/111-999-two-digits-no-zero/solve-MrJavan.py new file mode 100644 index 0000000..13120c3 --- /dev/null +++ b/math/111-999-two-digits-no-zero/solve-MrJavan.py @@ -0,0 +1,12 @@ +numbers = range(100, 1000) + +total = 0 +for number in numbers: + count = 0 + digits = set() + for i in str(number): + digits.add(i) + if len(digits) == 2 and '0' not in digits: + total += 1 + +print(total) \ No newline at end of file