Skip to content

Commit

Permalink
AC
Browse files Browse the repository at this point in the history
  • Loading branch information
dungnguyen-art committed Sep 2, 2021
0 parents commit ada2b29
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Check_Odd_Even.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -------------------------------------
# create by: Nguyen Tien Dung -
# Date: 10:11 PM 30/8/2021 -
# ------------------------------------

numbe = int(input())
if numbe % 2 == 0:
print("CHAN")
else :
print("LE")
17 changes: 17 additions & 0 deletions Decode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -------------------------------------
# create by: Nguyen Tien Dung -
# Date: 11:23 PM 30/8/2021 -
# -------------------------------------
#hehelo bebe
T = int(input())
while T>0:
str = input()
for index in range(len(str)):
if index % 2 == 1:
k = int(str[index])
# print(str[index])
while k > 0:
print(str[index-1],end="")
k = k-1
T = T-1
print("\n")

0 comments on commit ada2b29

Please sign in to comment.