# 0001, 2022-03-24 08:10:32, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริงt front = t[0] want = True ans = "" for ch in t: if ch == front and want: want = False elif ch == อะไร: want = True elif want: ans += ch return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0002, 2022-03-24 08:14:06, --- (0%) def get_secret(t): key, keep,ans = t[0], True, "" for ch in t: if ch == key and keep: key = False elif ch == key: key = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) | # 0003, 2022-03-24 08:14:37, --- (0%) def get_secret(t): key, keep,ans = t[0], True, "" for ch in t: if ch == key and keep: key = False elif ch == key: key = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0004, 2022-03-24 08:15:05, --- (0%) def get_secret(t): key, keep,ans = t[0], True, "" for ch in t: if ch == key and keep: key = False elif ch == key: key = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0005, 2022-03-24 08:16:18, --- (0%) def get_secret(t): key, keep, ans = t[0], True, "" for ch in t: if ch == key and keep: key = False elif ch == key:key = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) exec(input().strip()) # DON'T remove this lin | # 0006, 2022-03-24 08:18:08, --- (0%) def get_secret(t): key, keep, ans = t[0], True, "" for ch in t: if ch == key and keep: key = False elif ch == key:key = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) exec(input().strip()) # DON'T remove this lin | # 0007, 2022-03-24 08:18:20, --- (0%) def get_secret(t): key, Keep, Ans = t[0], True, "" for ch in t: if ch == key and Keep: key = False elif ch == key:key = True elif Keep: Ans += ch return Ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) exec(input().strip()) # DON'T remove this lin | # 0008, 2022-03-24 08:19:19, PPP (100%) def get_secret(t): key, keep, ans = t[0], True, "" for ch in t: if ch == key and keep: keep = False elif ch == key:keep = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for Line in InFile: print(get_secret(Line)) exec(input().strip()) # DON'T remove this lin | # 0009, 2022-03-24 08:20:17, PPP (100%) def get_secret(t): key, keep, ans = t[0], True, "" for ch in t: if ch == key and keep: keep = False elif ch == key: keep = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for Line in InFile: print(get_secret(Line)) exec(input().strip()) # DON'T remove this lin | # 0010, 2022-03-24 08:20:41, PPP (100%) def get_secret(t): key, keep, ans = t[0], True, "" for ch in t: if ch == key and keep: keep = False elif ch == key: keep = True elif keep: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for Line in InFile: print(get_secret(Line)) exec(input().strip()) # DON'T remove this line |
# 0011, 2022-03-24 08:15:30, xxx (0%) def get_secret(t): t = input() text = '' sym = t[0] use = t.split(sym) for i in range(len(use)): if i % 2 != 0: pass else: text += use[i] def print_secret(filename): file = open(filename) for character in file: decrypt = get_secret(character) print(decrypt) exec(input().strip()) # DON'T remove this line | # 0012, 2022-03-24 08:15:58, xxx (0%) def get_secret(t): t = input() text = '' sym = t[0] use = t.split(sym) for i in range(len(use)): if i % 2 == 0: text += use[i] def print_secret(filename): file = open(filename) for character in file: decrypt = get_secret(character) print(decrypt) exec(input().strip()) # DON'T remove this line | # 0013, 2022-03-24 08:16:08, xxx (0%) def get_secret(t): t = input() text = '' sym = t[0] use = t.split(sym) for x in range(len(use)): if x % 2 == 0: text += use[i] def print_secret(filename): file = open(filename) for character in file: decrypt = get_secret(character) print(decrypt) exec(input().strip()) # DON'T remove this line | # 0014, 2022-03-24 08:16:37, xxx (0%) def get_secret(t): t = input() text = '' sym = t[0] use = t.split(sym) for x in range(len(use)): if x % 2 == 0: text += use[i] return text def print_secret(filename): file = open(filename) for character in file: decrypt = get_secret(character) print(decrypt) exec(input().strip()) # DON'T remove this line | # 0015, 2022-03-24 08:17:54, xxx (0%) def get_secret(t): t = input() text = '' sym = t[0] use = t.split(sym) for x in range(len(use)): if x % 2 == 0: text += use[i] return text def print_secret(filename): file = open(filename) for i in file: i = get_secret(character) print(i) exec(input().strip()) # DON'T remove this line | # 0016, 2022-03-24 08:18:05, xxx (0%) def get_secret(t): text = '' sym = t[0] use = t.split(sym) for x in range(len(use)): if x % 2 == 0: text += use[i] return text def print_secret(filename): file = open(filename) for i in file: i = get_secret(character) print(i) exec(input().strip()) # DON'T remove this line | # 0017, 2022-03-24 08:18:22, xxx (0%) def get_secret(t): text = '' sym = t[0] use = t.split(sym) for x in range(len(use)): if x % 2 == 0: text += use[i] return text def print_secret(filename): file = open(filename) for i in file: i = get_secret(character) print(i) exec(input().strip()) # DON'T remove this line | # 0018, 2022-03-24 08:18:43, xxx (0%) def get_secret(t): text = '' use = t.split(t[0]) for x in range(len(use)): if x % 2 == 0: text += use[i] return text def print_secret(filename): file = open(filename) for i in file: i = get_secret(character) print(i) exec(input().strip()) # DON'T remove this line | # 0019, 2022-03-24 08:19:12, PPP (100%) def get_secret(t): text = '' sym = t[0] use = t.split(sym) for i in range(len(use)): if i % 2 == 0: text += use[i] return text def print_secret(filename): file = open(filename) for character in file: decrypt = get_secret(character) print(decrypt) exec(input().strip()) # DON'T remove this line | # 0020, 2022-03-24 08:19:37, PPP (100%) def get_secret(t): text = '' sym = t[0] use = t.split(sym) for i in range(len(use)): if i % 2 == 0: text += use[i] return text def print_secret(filename): file = open(filename) for character in file: decrypt = get_secret(character) print(decrypt) file.close() exec(input().strip()) # DON'T remove this line |
# 0021, 2022-03-24 08:15:19, xxx (0%) def get_secret(t): x=t[0] t=t.split(x) c=0 y='' for i in range(c+1,len(t)): ii=t.find(x) c=t.find(x,ii+1) y+=t[ii+1:c] return y # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fileout = open(filename, "w", encoding = "utf-8") for line in file: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0022, 2022-03-24 08:16:16, PPx (67%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fileout = open(filename, "w", encoding = "utf-8") for line in file: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0023, 2022-03-24 08:16:25, PPx (67%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fileout = open(filename, "w", encoding = "utf-8") for line in file: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0024, 2022-03-24 08:16:43, PPx (67%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fileout = open(filename, "w", encoding = "utf-8") for line in file: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0025, 2022-03-24 08:17:19, PPx (67%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fileout = open(filename, "w", encoding = "utf-8") for line in file: print(get_secret(line)) fileout.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0026, 2022-03-24 08:19:24, PPx (67%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fileout = open(filename, "r", encoding = "utf-8") for line in file: print(get_secret(line)) fileout.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0027, 2022-03-24 08:19:44, PPx (67%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fileout = open(filename, "r") for line in file: print(get_secret(line)) fileout.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0028, 2022-03-24 08:20:20, PPx (67%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): file = open(filename, "r") for line in file: print(get_secret(line)) fileout.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0029, 2022-03-24 08:20:36, PPP (100%) def get_secret(t): x=t[0] t=t.split(x)[2::2] return ''.join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): file = open(filename, "r") for line in file: print(get_secret(line)) file.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0030, 2022-03-24 08:14:12, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] y = "" check = False for i in range(len(t)): z = t[i] if check == x: check = not check if check and z != x: y = y + z return y def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for l in ans: print(get_secret(l)) exec(input().strip()) # DON'T remove this line | # 0031, 2022-03-24 08:14:28, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] y = "" check = False for i in range(1,len(t)): z = t[i] if check == x: check = not check if check and z != x: y = y + z return y def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for l in ans: print(get_secret(l)) exec(input().strip()) # DON'T remove this line | # 0032, 2022-03-24 08:16:25, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] y = "" check = False for i in range(1,len(t)): z = t[i] if check == x: check = not check if check and z != x: y = y + z return y def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for line in ans: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0033, 2022-03-24 08:16:54, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] y = "" check = False for i in range(1,len(t)): z = t[i] if check == x: check = not check if check and z != x: y = y + z return y def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for line in ans: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0034, 2022-03-24 08:20:02, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[0] b = "" ticker = False for i in range(1,len(t)): c = t[i] if c == a: ticker = not ticker if ticker and c != a: b += c return b def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for line in ans: print(get_secret(line)) ans.close() exec(input().strip()) # DON'T remove this line | # 0035, 2022-03-24 08:20:08, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[0] b = "" ticker = False for i in range(1,len(t)): c = t[i] if c == a: ticker = not ticker if ticker and c != a: b += c return b def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for line in ans: print(get_secret(line)) ans.close() exec(input().strip()) # DON'T remove this line | # 0036, 2022-03-24 08:20:23, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[0] b = "" ticker = False for i in range(1,len(t)): c = t[i] if c == a: ticker = not ticker if ticker and c != a: b += c return b def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for line in ans: print(get_secret(line)) ans.close() exec(input().strip()) # DON'T remove this line | # 0037, 2022-03-24 08:20:29, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[0] b = "" ticker = False for i in range(1,len(t)): c = t[i] if c == a: ticker = not ticker if ticker and c != a: b += c return b def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ans = open(filename) for line in ans: print(get_secret(line)) ans.close() exec(input().strip()) # DON'T remove this line |
# 0038, 2022-03-24 08:06:03, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t k = t[0] o = "" x = False for i in range(1,len(t)): if t[i] == k: x = not x if x and t[i] != k: o += t[i] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0039, 2022-03-24 08:13:13, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t return ''.join([i for x,i in enumerate(t.split(t[0])) if x%2==0]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0040, 2022-03-24 08:13:48, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t return ''.join([i for x,i in enumerate(t.split(t[0])) if x%2==0]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด [print(get_secret(line)) for line in open(filename)] exec(input().strip()) # DON'T remove this line | # 0041, 2022-03-24 08:14:41, PPP (100%) def get_secret(t): return ''.join([i for x,i in enumerate(t.split(t[0])) if x%2==0]) def print_secret(filename): [print(get_secret(line)) for line in open(filename)] exec(input().strip()) # DON'T remove this line | # 0042, 2022-03-24 08:14:45, PPP (100%) def get_secret(t): return ''.join([i for x,i in enumerate(t.split(t[0])) if x%2==0]) def print_secret(filename): [print(get_secret(line)) for line in open(filename)] exec(input().strip()) # DON'T remove this line | # 0043, 2022-03-24 08:15:08, PPP (100%) def get_secret(t): return ''.join([i for x,i in enumerate(t.split(t[0])) if x%2==0]) def print_secret(filename): [print(get_secret(line)) for line in open(filename)] exec(input().strip()) |
# 0044, 2022-03-24 08:13:27, --- (0%) def get_secret(t): get = '' s = t[0] t1 = t[1:].split(s) final = t1[1::2] for e in final: get+=e return get | # 0045, 2022-03-24 08:13:48, PPx (67%) def get_secret(t): get = '' s = t[0] t1 = t[1:].split(s) final = t1[1::2] for e in final: get+=e return get exec(input().strip()) | # 0046, 2022-03-24 08:15:58, PPP (100%) def get_secret(t): get = '' s = t[0] t1 = t[1:].split(s) final = t1[1::2] for e in final: get+=e return get def print_secret(filename): f = open(filename,'r') info = [] for line in f: info.append(get_secret(line)) for e in info: print(e) exec(input().strip()) | # 0047, 2022-03-24 08:16:05, PPP (100%) def get_secret(t): get = '' s = t[0] t1 = t[1:].split(s) final = t1[1::2] for e in final: get+=e return get def print_secret(filename): f = open(filename,'r') info = [] for line in f: info.append(get_secret(line)) for e in info: print(e) exec(input().strip()) | # 0048, 2022-03-24 08:18:48, PPP (100%) def get_secret(t): get = '' s = t[0] t1 = t[1:].split(s) final = t1[1::2] for e in final: get+=e return get def print_secret(filename): f = open(filename,'r') info = [] for line in f: info.append(get_secret(line)) for e in info: print(e) f.close() exec(input().strip()) | # 0049, 2022-03-24 08:19:09, PPP (100%) def get_secret(t): get = '' s = t[0] t1 = t[1:].split(s) final = t1[1::2] for e in final: get+=e return get def print_secret(filename): f = open(filename,'r') info = [] for line in f: info.append(get_secret(line)) f.close() for e in info: print(e) exec(input().strip()) |
# 0050, 2022-03-24 08:09:34, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # # return สตริงข้อความลับที่ถอดออกมาจากสตริง t get = t[0] ans = '' for i in range(1, len(t[1:])-2): if t[i] == t[i+2] == get: ans += t[i+1] return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, 'r', encoding='utf-8') as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0051, 2022-03-24 08:14:10, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # # return สตริงข้อความลับที่ถอดออกมาจากสตริง t get = t[0] ans = '' check = False for i in range(1, len(t)): if t[i] == get: check = True if check: ans += t[i] ans = ans.split(get) return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, 'r', encoding='utf-8') as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0052, 2022-03-24 08:14:51, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # # return สตริงข้อความลับที่ถอดออกมาจากสตริง t get = t[0] ans = '' check = False for i in range(1, len(t)): if t[i] == get: check = True if check: ans += t[i] check = False ans = ans.split(get) return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, 'r', encoding='utf-8') as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0053, 2022-03-24 08:16:23, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # # return สตริงข้อความลับที่ถอดออกมาจากสตริง t get = t[0] ans = '' check = False for i in range(1, len(t)): if t[i] == get: check = True if check: ans += t[i] check = False return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, 'r', encoding='utf-8') as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0054, 2022-03-24 08:18:28, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # # return สตริงข้อความลับที่ถอดออกมาจากสตริง t get = t[0] ans = '' check = False for i in range(1, len(t)): if t[i] == get and not check: check = True if t[i] == get and check: check = False if check: ans += t[i] ans = ans.split(get) return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, 'r', encoding='utf-8') as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0055, 2022-03-24 08:18:48, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # # return สตริงข้อความลับที่ถอดออกมาจากสตริง t get = t[0] ans = '' check = False for i in range(1, len(t)): if t[i] == get and not check: check = True elif t[i] == get and check: check = False if check: ans += t[i] ans = ans.split(get) return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, 'r', encoding='utf-8') as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0056, 2022-03-24 08:18:33, PPP (100%) def get_secret(t): astra=t[0] z=0 bro=[] damwon='' while t.find(astra,z)!=-1: z=t.find(astra,z) bro.append(z) z+=1 for i in range(1,len(bro)): a=int(bro[i-1]+1) b=int(bro[i]) if i%2==0 : damwon+=t[a:b] return damwon def print_secret(filename): onfile=open(filename,'r') for line in onfile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0057, 2022-03-24 08:19:56, PPx (67%) def get_secret(t): astra=t[0] z=0 bro=[] damwon='' while t.find(astra,z)!=-1: z=t.find(astra,z) bro.append(z) z+=1 for i in range(1,len(bro)): a=int(bro[i-1]+1) b=int(bro[i]) if i%2==0 : damwon+=t[a:b] return damwon def print_secret(filename): onfile=open(filename,'r') for line in onfile: print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line | # 0058, 2022-03-24 08:20:08, PPP (100%) def get_secret(t): astra=t[0] z=0 bro=[] damwon='' while t.find(astra,z)!=-1: z=t.find(astra,z) bro.append(z) z+=1 for i in range(1,len(bro)): a=int(bro[i-1]+1) b=int(bro[i]) if i%2==0 : damwon+=t[a:b] return damwon def print_secret(filename): onfile=open(filename,'r') for line in onfile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0059, 2022-03-24 08:20:50, PPx (67%) def get_secret(t): astra=t[0] z=0 bro=[] damwon='' while t.find(astra,z)!=-1: z=t.find(astra,z) bro.append(z) z+=1 for i in range(1,len(bro)): a=int(bro[i-1]+1) b=int(bro[i]) if i%2==0 : damwon+=t[a:b] return damwon def print_secret(filename): onfile=open(filename,'r') for line in onfile: print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line | # 0060, 2022-03-24 08:21:02, PPP (100%) def get_secret(t): astra=t[0] z=0 bro=[] damwon='' while t.find(astra,z)!=-1: z=t.find(astra,z) bro.append(z) z+=1 for i in range(1,len(bro)): a=int(bro[i-1]+1) b=int(bro[i]) if i%2==0 : damwon+=t[a:b] return damwon def print_secret(filename): onfile=open(filename,'r') for line in onfile: print(get_secret(line)) onfile.close() exec(input().strip()) # DON'T remove this line |
# 0061, 2022-03-24 08:10:26, --- (0%) def get_secret(t): อะไร = t[0] ต้องการ = True คำตอบ = "" for ch in t: if ch == อะไร and ต้องการ: ต้องการ = False elif ch == อะไร: ต้องการ = True elif ต้องการ: คำตอบ += ch return คำตอบ def print_secret(filename): with open(filename) as ไฟล์: for บรรทัด in ไฟล์: print(get_secret(บรรทัด)) | # 0062, 2022-03-24 08:13:53, --- (0%) def get_secret(t): key, Keep, Ans = t[0], True, "" for ch in t: if ch == key and Keep: key = False elif ch == key:key = True elif Keep: Ans += ch return Ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) | # 0063, 2022-03-24 08:15:02, --- (0%) def get_secret(t): key, Keep, Ans = t[0], True, "" for ch in t: if ch == key and Keep: key = False elif ch == key:key = True elif Keep: Ans += ch return Ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) exec(input().strip()) # DON'T remove this lin | # 0064, 2022-03-24 08:15:23, xxx (0%) exec(input().strip()) # DON'T remove this lin def get_secret(t): key, Keep, Ans = t[0], True, "" for ch in t: if ch == key and Keep: key = False elif ch == key:key = True elif Keep: Ans += ch return Ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) | # 0065, 2022-03-24 08:15:59, PPP (100%) def get_secret(t): อะไร = t[0] ต้องการ = True คำตอบ = "" for ch in t: if ch == อะไร and ต้องการ: ต้องการ = False elif ch == อะไร: ต้องการ = True elif ต้องการ: คำตอบ += ch return คำตอบ def print_secret(filename): with open(filename) as ไฟล์: for บรรทัด in ไฟล์: print(get_secret(บรรทัด)) exec(input().strip()) # DON'T remove this lin |
# 0066, 2022-03-24 08:17:05, PPP (100%) def get_secret(t): secret = '' word = t.split(t[0]) for i in word[0::2]: secret += i return secret def print_secret(filename): with open(filename) as f: for line in f: print( get_secret(line)) exec(input().strip()) | # 0067, 2022-03-24 08:17:58, PPP (100%) def get_secret(t): secret = '' word = t.split(t[0]) for i in word[0::2]: secret += i return secret def print_secret(filename): with open(filename) as fn: for line in fn: print( get_secret(line)) exec(input().strip()) | # 0068, 2022-03-24 08:19:28, PPP (100%) def get_secret(t): secret = '' word = t.split(t[0]) for i in word[0::2]: secret += i return secret def print_secret(filename): with open(filename) as fn: for line in fn: print( get_secret(line)) fn.close() exec(input().strip()) | # 0069, 2022-03-24 08:20:03, compilation error (0%) def get_secret(t): secret = '' word = t.split(t[0]) for i in word[0::2]: secret += i return secret def print_secret(filename): with fn = open(filename, 'r'): for line in fn: print( get_secret(line)) fn.close() exec(input().strip()) | # 0070, 2022-03-24 08:20:19, PPP (100%) def get_secret(t): secret = '' word = t.split(t[0]) for i in word[0::2]: secret += i return secret def print_secret(filename): with open(filename) as fn: for line in fn: print( get_secret(line)) fn.close() exec(input().strip()) |
# 0071, 2022-03-24 08:13:13, compilation error (0%) def get_secret(t): ans = '' use = t[0] key = t.split(use) for i in key[2::2]: ans += i return ans def print_secret(filename): c = open(filename,'r') for i c: ans= get_secret(i) print(ans) | # 0072, 2022-03-24 08:13:51, --- (0%) def get_secret(t): ans = '' use = t[0] key = t.split(use) for i in key[2::2]: ans += i return ans def print_secret(filename): c = open(filename,'r') for i in c: ans= get_secret(i) print(ans) | # 0073, 2022-03-24 08:17:05, --- (0%) def get_secret(t): ans = '' use = t[0] key = t.strip().split(use) for i in key[2::2]: ans += i return ans def print_secret(filename): c = open(filename,'r') for i in c: ans= get_secret(i) print(ans) | # 0074, 2022-03-24 08:17:43, --- (0%) def get_secret(t): ans = '' use = t[0] key = t.strip().split(use) for i in key[2::2]: ans += i return ans def print_secret(filename): c = open(filename,'r') for i in c: ans= get_secret(i) print(ans) | # 0075, 2022-03-24 08:18:16, PPP (100%) def get_secret(t): ans = '' use = t[0] key = t.strip().split(use) for i in key[2::2]: ans += i return ans def print_secret(filename): c = open(filename,'r') for i in c: ans= get_secret(i) print(ans) exec(input().strip()) |
# 0076, 2022-03-24 08:11:12, --- (0%) def get_secret(t): a = t[0] t = t[1:] c = 0 n = 0 s = '' for i in range(len(t)): if t[i] == a: c += 1 if c % 2 != 0: n = i elif c % 2 == 0: s += t[n+1:i] return s def print_secret(filename): f = open(filename, "r") for i in f: print(get_secret(i)) | # 0077, 2022-03-24 08:13:46, --- (0%) def get_secret(t): a = t[0] t = t[1:] c = 0 n = 0 s = '' for i in range(len(t)): if t[i] == a: c += 1 if c % 2 != 0: n = i elif c % 2 == 0: s += t[n+1:i] return s def print_secret(filename): f = open(filename, "r") for i in f: print(get_secret(str(i))) f.close() | # 0078, 2022-03-24 08:16:41, --- (0%) def get_secret(t): a = t[0] t = t[1:] c = 0 n = 0 s = '' for i in range(len(t)): if t[i] == a: c += 1 if c % 2 != 0: n = i elif c % 2 == 0: s += t[n+1:i] return s def print_secret(filename): f = open(filename, "r") for i in f: a = (get_secret(i)) print(a) f.close() | # 0079, 2022-03-24 08:18:04, --- (0%) def get_secret(t): a = t[0] t = t[1:] c = 0 n = 0 s = '' for i in range(len(t)): if t[i] == a: c += 1 if c % 2 != 0: n = i elif c % 2 == 0: s += t[n+1:i] return s def print_secret(filename): f = open(filename, "r") for i in f: a = (get_secret(i)) print(a) f.close() | # 0080, 2022-03-24 08:18:50, PPP (100%) def get_secret(t): a = t[0] t = t[1:] c = 0 n = 0 s = '' for i in range(len(t)): if t[i] == a: c += 1 if c % 2 != 0: n = i elif c % 2 == 0: s += t[n+1:i] return s def print_secret(filename): f = open(filename, "r") for i in f: a = (get_secret(i)) print(a) f.close() exec(input().strip()) |
# 0081, 2022-03-24 08:12:16, PPP (100%) def get_secret(t): key = t[0] secret = "" tf = False for i in range(1, len(t)): if t[i] == key: tf = not tf elif tf: secret += t[i] return secret def print_secret(filename): file = open(filename, "r") for e in file: e = e.strip() print(get_secret(e)) return exec(input().strip()) | # 0082, 2022-03-24 08:15:13, --- (0%) def get_secret(t): key = t[0] secret = "" tf = False for i in t: if i == key: tf = not tf elif tf : secret += i return secret def print_secret(filename): file = open(filename, "r") for e in file: e = e.strip() print(get_secret(e)) return exec(input().strip()) | # 0083, 2022-03-24 08:17:05, PPP (100%) def get_secret(t): key = t[0] secret = "" tf = 0 for i in t: if i == key: tf += 1 elif tf % 2 == 0 : secret += i return secret def print_secret(filename): file = open(filename, "r") for e in file: e = e.strip() print(get_secret(e)) return exec(input().strip()) | # 0084, 2022-03-24 08:18:29, PPP (100%) def get_secret(t): key = t[0] secret = "" tf = 0 for i in t: if i == key: tf += 1 elif tf % 2 == 0 : secret += i return secret def print_secret(filename): file = open(filename, "r") for e in file: print(get_secret(e)) return exec(input().strip()) | # 0085, 2022-03-24 08:21:01, PPP (100%) def get_secret(t): key = t[0] secret = "" tf = 1 for i in t: if i == key: tf += 1 elif tf % 2 == 1 : secret += i return secret def print_secret(filename): file = open(filename, "r") for e in file: e = e.strip() print(get_secret(e)) return exec(input().strip()) |
# 0086, 2022-03-24 08:12:29, PPx (67%) def get_secret(t): out = [] key = t[0] ans = t[1:].split(key) for i in range(len(ans)): if i%2 == 1: out.append(ans[i]) final = ''.join(out) return final def print_secret(filename): b = open(filename, 'r') for i in b: note = get_secert(b) print(note) b.close() exec(input().strip()) | # 0087, 2022-03-24 08:14:16, PPx (67%) def get_secret(t): out = [] key = t[0] ans = t[1:].split(key) for i in range(len(ans)): if i%2 == 1: out.append(ans[i]) final = ''.join(out) return final def print_secret(filename): b = open(filename, 'r') for i in b: note = get_secert(b) print(note) b.close() return b exec(input().strip()) | # 0088, 2022-03-24 08:14:34, PPx (67%) def get_secret(t): out = [] key = t[0] ans = t[1:].split(key) for i in range(len(ans)): if i%2 == 1: out.append(ans[i]) final = ''.join(out) return final def print_secret(filename): b = open(filename, 'r') for i in b: note = get_secert(b) print(note) b.close() return exec(input().strip()) | # 0089, 2022-03-24 08:16:33, PPx (67%) def get_secret(t): out = [] key = t[0] ans = t[1:].split(key) for i in range(len(ans)): if i%2 == 1: out.append(ans[i]) final = ''.join(out) return final def print_secret(filename): b = open(filename, 'r') for i in b: note = get_secret(b) print(note) b.close() return exec(input().strip()) | # 0090, 2022-03-24 08:17:45, PPP (100%) def get_secret(t): out = [] key = t[0] ans = t[1:].split(key) for i in range(len(ans)): if i%2 == 1: out.append(ans[i]) final = ''.join(out) return final def print_secret(filename): b = open(filename, 'r') for i in b: note = get_secret(i) print(note) b.close() return exec(input().strip()) |
# 0091, 2022-03-24 08:10:13, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t first = t[0] pas = t[1:] c = pas.count(first) d = 0 out = '' for i in range(c/2): p1 = pas.find(first,d) p2 = pas.find(first,p1) out+=pas[p1+1:p2] d = p2 return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') while True: line = fn.readline() if len(line)==0: break print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0092, 2022-03-24 08:10:56, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t first = t[0] pas = t[1:] c = pas.count(first) d = 0 out = '' for i in range(c/2): p1 = pas.find(first,d) p2 = pas.find(first,p1) out+=pas[p1+1:p2] d = p2 return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') while True: line = fn.readline() if len(line)==0: break print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line | # 0093, 2022-03-24 08:11:50, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t first = t[0] pas = t[1:] c = pas.count(first) d = 0 out = '' for i in range(c/2): p1 = pas.find(first,d) p2 = pas.find(first,p1) out+=pas[p1+1:p2] d = p2 return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') while True: line = fn.readline() if len(line)==0: break print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line | # 0094, 2022-03-24 08:12:45, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t first = t[0] pas = t[1:] c = pas.count(first) d = 0 out = '' for i in range(int(c/2)): p1 = pas.find(first,d) p2 = pas.find(first,p1) out+=pas[p1+1:p2] d = p2 return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') while True: line = fn.readline() if len(line)==0: break print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line | # 0095, 2022-03-24 08:15:38, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t first = t[0] line = t.split(first) output = line[::2] l = '' for i in output: l+=i return l def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') while True: line = fn.readline() if len(line)==0: break print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line |
# 0096, 2022-03-24 08:10:05, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t.split(t[0]) tt = "" for i in range(1, len(s) // 2) : tt += s[2*i] return tt def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ffile = open(filename, "r") for line in ffile : print(get_secret(line.strip())) ffile.close() | # 0097, 2022-03-24 08:10:30, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t.split(t[0]) tt = "" for i in range(1, len(s) // 2) : tt += s[2*i] return tt def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ffile = open(filename, "r") for line in ffile : print(get_secret(line.strip())) ffile.close() exec(input().strip()) # DON'T remove this line | # 0098, 2022-03-24 08:16:39, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t.split(t[0]) tt = "" for i in range(1, len(s)//2) : tt += s[2*i] return tt def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ffile = open(filename, "r") for line in ffile : print(get_secret(line.strip())) ffile.close() exec(input().strip()) # DON'T remove this line | # 0099, 2022-03-24 08:17:26, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t.split(t[0]) tt = "" for i in range(1, len(s)//2) : tt += s[2*i] return tt def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ffile = open(filename, "r") for line in ffile : print(get_secret(line) ffile.close() exec(input().strip()) # DON'T remove this line | # 0100, 2022-03-24 08:17:34, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t.split(t[0]) tt = "" for i in range(1, len(s)//2) : tt += s[2*i] return tt def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด ffile = open(filename, "r") for line in ffile : print(get_secret(line)) ffile.close() exec(input().strip()) # DON'T remove this line |
# 0101, 2022-03-24 08:10:37, P-- (33%) def get_secret(t): i = 1 secret = '' while i < len(t) : if t[i] not in 'abcdefghijklmnopqrstuvwxyz ' : i += 1 while i < len(t) : if t[i] in 'abcdefghijklmnopqrstuvwxyz ' : secret += t[i] i += 1 else : break i += 1 return secret def print_secret(filename): file = open(filename) for line in file : print(get_secret(line)) exec(input().strip()) | # 0102, 2022-03-24 08:14:54, --- (0%) def get_secret(t): s = t[0] i = 1 secret = '' while i < len(t) : if t[i] != t[0] : i += 1 while i < len(t) : if t[i] != t[0] : secret += t[i] i += 1 else : break i += 1 return secret def print_secret(filename): file = open(filename) for line in file : print(get_secret(line)) exec(input().strip()) | # 0103, 2022-03-24 08:15:36, --- (0%) def get_secret(t): s = t[0] i = 1 secret = '' while i < len(t) : if t[i] != s : i += 1 while i < len(t) : if t[i] != s : secret += t[i] i += 1 else : break i += 1 return secret def print_secret(filename): file = open(filename) for line in file : print(get_secret(line)) exec(input().strip()) | # 0104, 2022-03-24 08:17:31, PPP (100%) def get_secret(t): s = t[0] i = 1 secret = '' while i < len(t) : if t[i] == s : i += 1 while i < len(t) : if t[i] != s : secret += t[i] i += 1 else : break i += 1 return secret def print_secret(filename): file = open(filename) for line in file : print(get_secret(line)) exec(input().strip()) |
# 0105, 2022-03-24 08:17:14, --- (0%) def get_secret(t): a, b, code = t[0], True, '' for c in t: if c == a and b: a = False elif c == a: a = True elif b: code += c return code def print_secret(filename): with open(filename) as f: for line in f: print(get_secret(line)) exec(input().strip()) | # 0106, 2022-03-24 08:17:36, --- (0%) def get_secret(t): a, b, code = t[0], True, '' for c in t: if c == a and b: a = False elif c == a: a = True elif b: code += c return code def print_secret(filename): with open(filename) as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0107, 2022-03-24 08:19:44, PPP (100%) def get_secret(t): a, b, code = t[0], True, "" for ch in t: if ch == a and b: b = False elif ch == a:b = True elif b: code += ch return code def print_secret(filename): with open(filename) as f: for Line in f: print(get_secret(Line)) exec(input().strip()) | # 0108, 2022-03-24 08:20:23, PPP (100%) def get_secret(t): a, b, code = t[0], True, "" for ch in t: if ch == a and b: b = False elif ch == a:b = True elif b: code += ch return code def print_secret(filename): with open(filename) as f: for line in f: print(get_secret(line)) exec(input().strip()) |
# 0109, 2022-03-24 08:13:59, PPx (67%) def get_secret(t): secret = t[0] want = True Ans = "" for ch in t: if ch == secret and want: want = False elif ch == secret: want = True elif want: Ans += ch return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename) as infile: for line in Infile: print(get_secret(line)) exec(input().strip()) | # 0110, 2022-03-24 08:16:54, PPP (100%) def get_secret(t): secret = t[0] want = True Ans = "" for ch in t: if ch == secret and want: want = False elif ch == secret: want = True elif want: Ans += ch return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename) as infile: for line in infile: # infile.write(get_secret(input().strip())) print(get_secret(line)) exec(input().strip()) | # 0111, 2022-03-24 08:17:44, compilation error (0%) def get_secret(t): secret = t[0] want = True Ans = "" for ch in t: if ch == secret and want: want = False elif ch == secret: want = True elif want: Ans += ch return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile = open(filename, 'r') for line in infile: # infile.write(get_secret(input().strip())) print(get_secret(line)) infile.close() exec(input().strip()) | # 0112, 2022-03-24 08:18:03, PPP (100%) def get_secret(t): secret = t[0] want = True Ans = "" for ch in t: if ch == secret and want: want = False elif ch == secret: want = True elif want: Ans += ch return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile = open(filename, 'r') for line in infile: # infile.write(get_secret(input().strip())) print(get_secret(line)) infile.close() exec(input().strip()) |
# 0113, 2022-03-24 08:11:46, --- (0%) def get_secret(t): s = t[0] c = 0 ans = '' for i in t: if s == i : c+=1 if c%2==0: ans+=i return ans[1::2] def print_secret(filename): x = open(filename,'r') for line in x: print(get_secret(line)) | # 0114, 2022-03-24 08:14:54, --- (0%) def get_secret(t): s = t[0] c = 0 ans = '' for i in t[1::]: if s == i : c+=1 if c%2==1: ans+=i return ans[::2] def print_secret(filename): x = open(filename,'r') for line in x: print(get_secret(line)) | # 0115, 2022-03-24 08:16:40, --- (0%) def get_secret(t): s = t[0] c = 0 ans = '' for i in t[1::]: if s == i : c+=1 if c%2==1 and s != i: ans+=i return ans def print_secret(filename): x = open(filename,'r') for line in x: print(get_secret(line)) | # 0116, 2022-03-24 08:17:03, PPP (100%) def get_secret(t): s = t[0] c = 0 ans = '' for i in t[1::]: if s == i : c+=1 if c%2==1 and s != i: ans+=i return ans def print_secret(filename): x = open(filename,'r') for line in x: print(get_secret(line)) exec(input().strip()) |
# 0117, 2022-03-24 08:05:04, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t.split() b = '' for e in a: b += '$' + e + '$' return '$' + 'asdolkfnparwe' + b + 'oeirjngljen' def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, encoding='utf-8') as file: for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0118, 2022-03-24 08:07:34, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[:len(t) // 2] + t[len(t) // 2:] b = '' for e in a: b += '$' + e + '$' return '$' + 'asdolkfnparwe ' + b + ' oeirjngljen' def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, encoding='utf-8') as file: for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0119, 2022-03-24 08:12:19, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] a = t[1:].split(key) a = a[1::2] return ''.join(a) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, encoding='utf-8') as file: for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0120, 2022-03-24 08:14:21, PPP (100%) def get_secret(t): return ''.join(t[1:].split(t[0])[1::2]) def print_secret(filename): with open(filename, encoding='utf-8') as file: for line in file: print(get_secret(line)) exec(input().strip()) |
# 0121, 2022-03-24 08:14:28, --- (0%) def get_secret(t): t = input() s = t[0] nt = t[1::] nt = nt.split(s) nt = nt[1::2] return nt def print_secret(filename): infile = open(filename) x = infile.readline().strip() while len(x) > 0: print(get_secret(x)) x = infile.readline().strip() | # 0122, 2022-03-24 08:14:54, --- (0%) def get_secret(t): s = t[0] nt = t[1::] nt = nt.split(s) nt = nt[1::2] return nt def print_secret(filename): infile = open(filename) x = infile.readline().strip() while len(x) > 0: print(get_secret(x)) x = infile.readline().strip() | # 0123, 2022-03-24 08:15:30, -x- (0%) def get_secret(t): s = t[0] nt = t[1::] nt = nt.split(s) nt = nt[1::2] return nt def print_secret(filename): infile = open(filename) x = infile.readline().strip() while len(x) > 0: print(get_secret(x)) x = infile.readline().strip() exec(input().strip()) # DON'T remove this line | # 0124, 2022-03-24 08:16:29, PPP (100%) def get_secret(t): s = t[0] nt = t[1::] nt = nt.split(s) nt = nt[1::2] return "".join(nt) def print_secret(filename): infile = open(filename) x = infile.readline().strip() while len(x) > 0: print(get_secret(x)) x = infile.readline().strip() exec(input().strip()) # DON'T remove this line |
# 0125, 2022-03-24 08:18:13, --- (0%) def get_secret(t): x = t[0] h = '' k = 0 for i in range(len(t)): if i!=0: if t[i] == x: if k == 1: k=0 else: k = 1 if k == 1 and t[i] !=x: h += t[i] return h | # 0126, 2022-03-24 08:19:19, --- (0%) def get_secret(t): x = t[0] h = '' k = 0 for i in range(len(t)): if i!=0: if t[i] == x: if k == 1: k=0 else: k = 1 if k == 1 and t[i] !=x: h += t[i] return h def print_secret(filename): fin = open(filename,'r') for line in fin: if len(line)==0: break print(get_secret(line)) | # 0127, 2022-03-24 08:20:14, PPP (100%) def get_secret(t): x = t[0] h = '' k = 0 for i in range(len(t)): if i!=0: if t[i] == x: if k == 1: k=0 else: k = 1 if k == 1 and t[i] !=x: h += t[i] return h def print_secret(filename): fin = open(filename,'r') for line in fin: if len(line)==0: break print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0128, 2022-03-24 08:20:23, PPP (100%) def get_secret(t): x = t[0] h = '' k = 0 for i in range(len(t)): if i!=0: if t[i] == x: if k == 1: k=0 else: k = 1 if k == 1 and t[i] !=x: h += t[i] return h def print_secret(filename): fin = open(filename,'r') for line in fin: if len(line)==0: break print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0129, 2022-03-24 08:08:59, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] t = t[1::].split(code)[1::2] return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return [] exec(input().strip()) # DON'T remove this line print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0130, 2022-03-24 08:09:22, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] t = t[1::].split(code)[1::2] return "".join(t) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return [] exec(input().strip()) # DON'T remove this line print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0131, 2022-03-24 08:14:45, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] t = t.split(code)[2::2] return "".join(t) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename, "r") for line in fn: x = get_secret(line) print(x) exec(input().strip()) # DON'T remove this line | # 0132, 2022-03-24 08:20:57, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] t = t.split(code)[2::2] return "".join(t) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename, "r") for line in fn: x = get_secret(line) print(x) fn.close() exec(input().strip()) # DON'T remove this line |
# 0133, 2022-03-24 08:14:27, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] li =t.split("spe") li = li[::2] secreat = "".join(li) return secreat def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for a in f: print(get_secret(a.strip())) file.close() exec(input().strip()) # DON'T remove this line | # 0134, 2022-03-24 08:16:15, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] li = t.split(spe) li = li[::2] secreat = "".join(li) return secreat def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for a in f: print(get_secret(a.strip())) file.close() exec(input().strip()) # DON'T remove this line | # 0135, 2022-03-24 08:16:33, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] li = t.split(spe) li = li[::2] secreat = "".join(li) return secreat def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for a in f: print(get_secret(a.strip())) file.close() exec(input().strip()) # DON'T remove this line | # 0136, 2022-03-24 08:17:41, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] li = t.split(spe) li = li[::2] secreat = "".join(li) return secreat def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for a in f: print(get_secret(a)) f.close() exec(input().strip()) # DON'T remove this line |
# 0137, 2022-03-24 08:15:27, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t.find(t[0],1) pre = [] while x != -1 : y = t.find(t[0],x + 1) pre.append(t[x+1:y]) x = t.find(t[0],y + 1) re = '' for ch in pre : re += ch return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for x in f : fi = get_secret(x) return fi | # 0138, 2022-03-24 08:17:55, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t.find(t[0],1) pre = [] while x != -1 : y = t.find(t[0],x + 1) pre.append(t[x+1:y]) x = t.find(t[0],y + 1) re = '' for ch in pre : re += ch return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for x in f : fi = get_secret(x) print(fi) return fi | # 0139, 2022-03-24 08:18:02, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t.find(t[0],1) pre = [] while x != -1 : y = t.find(t[0],x + 1) pre.append(t[x+1:y]) x = t.find(t[0],y + 1) re = '' for ch in pre : re += ch return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for x in f : fi = get_secret(x) print(fi) | # 0140, 2022-03-24 08:18:14, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t.find(t[0],1) pre = [] while x != -1 : y = t.find(t[0],x + 1) pre.append(t[x+1:y]) x = t.find(t[0],y + 1) re = '' for ch in pre : re += ch return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for x in f : fi = get_secret(x) print(fi) exec(input().strip()) # DON'T remove this line |
# 0141, 2022-03-24 08:14:44, --- (0%) def get_secret(t): x = t[0] k = '' j = t.find(x,1) h = t.find(x,j+1) k += t[j+1:h] while True: if t.find(x, h+1) != -1: j = t.find(x, h+1) h = t.find(x, j+1) k += t[j+1:h] else: break return k def print_secret(filename): pass | # 0142, 2022-03-24 08:14:53, PP- (67%) def get_secret(t): x = t[0] k = '' j = t.find(x,1) h = t.find(x,j+1) k += t[j+1:h] while True: if t.find(x, h+1) != -1: j = t.find(x, h+1) h = t.find(x, j+1) k += t[j+1:h] else: break return k def print_secret(filename): pass exec(input().strip()) | # 0143, 2022-03-24 08:16:18, PP- (67%) def get_secret(t): x = t[0] k = '' j = t.find(x,1) h = t.find(x,j+1) k += t[j+1:h] while True: if t.find(x, h+1) != -1: j = t.find(x, h+1) h = t.find(x, j+1) k += t[j+1:h] else: break return k def print_secret(filename): fn = open(filename,'r') for line in fn: print(line) exec(input().strip()) | # 0144, 2022-03-24 08:17:44, PPP (100%) def get_secret(t): x = t[0] k = '' j = t.find(x,1) h = t.find(x,j+1) k += t[j+1:h] while True: if t.find(x, h+1) != -1: j = t.find(x, h+1) h = t.find(x, j+1) k += t[j+1:h] else: break return k def print_secret(filename): fn = open(filename,'r') for line in fn: print(get_secret(line)) exec(input().strip()) |
# 0145, 2022-03-24 08:14:08, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] t = t[1:] word = "" b = t.split(key) for i in range(len(b)): if i%2 != 0: word += b[i] return(word) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด files = open(filename,"r") for i in files: print(get_secret(i)) exec(input().strip()) # DON'T remove this line | # 0146, 2022-03-24 08:14:20, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] t = t[1:] word = "" b = t.split(key) for i in range(len(b)): if i%2 != 0: word += b[i] return(word) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด files = open(filename,"r") for i in files: print(get_secret(i)) exec(input().strip()) # DON'T remove this line | # 0147, 2022-03-24 08:15:12, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] t = t[1:] word = [] b = t.split(key) for i in range(len(b)): if i%2 != 0: word.append(b[i]) return("".join(word)) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด files = open(filename,"r") for i in files: print(get_secret(i)) exec(input().strip()) # DON'T remove this line | # 0148, 2022-03-24 08:16:56, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] t = t[1:] word = "" b = t.split(key) for i in range(len(b)): if i%2 != 0: word += b[i] return(word) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด files = open(filename,"r") for i in files: print(get_secret(i)) exec(input().strip()) # DON'T remove this line |
# 0149, 2022-03-24 08:18:32, PPP (100%) def get_secret(t): code = t[0] condition = True ans = "" for ch in t: if ch == code and condition: condition = False elif ch == code: condition = True elif condition: ans += ch return ans def print_secret(filename): inf = open(filename, 'r') for line in inf: x = get_secret(line) print(x) exec(input().strip()) # DON'T remove this line | # 0150, 2022-03-24 08:19:06, PPx (67%) def get_secret(t): code = t[0] condition = True ans = "" for ch in t: if ch == code and condition: condition = False elif ch == code: condition = True elif condition: ans += ch return ans def print_secret(filename): inf = open(filename, 'r') for line in inf: x = get_secret(line) print(x) inf.closr() exec(input().strip()) # DON'T remove this line | # 0151, 2022-03-24 08:19:17, PPP (100%) def get_secret(t): code = t[0] condition = True ans = "" for ch in t: if ch == code and condition: condition = False elif ch == code: condition = True elif condition: ans += ch return ans def print_secret(filename): inf = open(filename, 'r') for line in inf: x = get_secret(line) print(x) inf.close() exec(input().strip()) # DON'T remove this line |
# 0152, 2022-03-24 08:10:59, --- (0%) def get_secret(t): key = t[0] list_t = t.split(key) out = "".join(list_t[2::2]) return out def print_secret(filename): infile = open(filename, "r") for line in infile: line = line.readline().strip() print(get_secret(line)) | # 0153, 2022-03-24 08:11:29, PPx (67%) def get_secret(t): key = t[0] list_t = t.split(key) out = "".join(list_t[2::2]) return out def print_secret(filename): infile = open(filename, "r") for line in infile: line = line.readline().strip() print(get_secret(line)) exec(input().strip()) | # 0154, 2022-03-24 08:15:13, PPP (100%) def get_secret(t): key = t[0] list_t = t.split(key) out = "".join(list_t[2::2]) return out def print_secret(filename): infile = open(filename, "r") for line in infile: print(get_secret(line)) exec(input().strip()) |
# 0155, 2022-03-24 08:19:48, PPP (100%) def get_secret(t): key, Keep, Ans = t[0], True, "" for ch in t: if ch == key and Keep: Keep = False elif ch == key:Keep = True elif Keep: Ans += ch return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename,'r') for i in file: print(get_secret(i)) file.close() exec(input().strip()) | # 0156, 2022-03-24 08:20:42, --- (0%) def get_secret(t): key, k, t = t[0], True, "" for ch in t: if ch == key and k: k = False elif ch == key:k = True elif k: t += ch return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename,'r') for i in file: print(get_secret(i)) file.close() exec(input().strip()) | # 0157, 2022-03-24 08:20:52, --- (0%) def get_secret(t): key, k, t = t[0], True, "" for ch in t: if ch == key and k: k = False elif ch == key:k = True elif k: t += ch return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename,'r') for i in file: print(get_secret(i)) file.close() exec(input().strip()) |
# 0158, 2022-03-24 08:12:52, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t h = t[0] T = t.split(h) ans = T[2::2] Ans = '' for i in ans: Ans += i return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด for line in filename: print(get_secret(filename)) exec(input().strip()) # DON'T remove this line | # 0159, 2022-03-24 08:14:18, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t h = t[0] T = t.split(h) ans = T[2::2] Ans = '' for i in ans: Ans += i return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด filein = open(filename,'r') for line in filein: print(get_secret(filename)) filein.close() exec(input().strip()) # DON'T remove this line | # 0160, 2022-03-24 08:15:49, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t h = t[0] T = t.split(h) ans = T[2::2] Ans = '' for i in ans: Ans += i return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด filein = open(filename,'r') for line in filein: print(get_secret(line)) filein.close() exec(input().strip()) # DON'T remove this line |
# 0161, 2022-03-24 08:10:57, --- (0%) def get_secret(t): n = True a = t[0] b = t[1::] ans = '' i = 0 while i < len(b): if (b[i] == a) and (n == True): ans += b[i+1] n = False elif (b[i] == a) and (n == False): n = True else : pass i += 1 return ans # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): file = open(filename, 'r') for line in file: print(get_secret(line)) file.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) | # 0162, 2022-03-24 08:14:46, --- (0%) def get_secret(t): n = False a = t[0] b = t[1::] ans = '' i = 0 while i < len(b): if (b[i] == a) and (n == False): n = True if n == True: ans += b[i+1] elif (b[i] == a) and (n == True): n = False else : pass i += 1 return ans # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): file = open(filename, 'r') for line in file: print(get_secret(line)) file.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) | # 0163, 2022-03-24 08:18:11, PPP (100%) def get_secret(t): a = t[0] b = t.split(a) ans = '' i = 2 while i< len(b): ans+= b[i] i += 2 return ans def print_secret(filename): file = open(filename, 'r') for line in file: print(get_secret(line)) file.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) |
# 0164, 2022-03-24 08:13:30, TTT (0%) def get_secret(t) : ans = '' i = 0 while t.find(t[0],i) != -1 : j = i i = t.find(t[0],j) ans += t[j:i+1] return ans def print_secret(filename) : f = open(filename, 'r') ans = [] for line in f : ans.append(get_secret(line)) for a in ans : print(a) exec(input().strip()) | # 0165, 2022-03-24 08:16:37, TTT (0%) def get_secret(t) : ans = '' i = 1 while t.find(t[0],i) != -1 : j = t.find(t[0],i) i = t.find(t[0],j) if i != 0 : ans += t[j:i+1] return ans def print_secret(filename) : f = open(filename, 'r') ans = [] for line in f : ans.append(get_secret(line)) for a in ans : print(a) exec(input().strip()) | # 0166, 2022-03-24 08:20:09, PPP (100%) def get_secret(t) : ans = '' i = 0 while t.find(t[0],i+1) != -1 : j = t.find(t[0],i+1) i = t.find(t[0],j+1) if i != 0 : ans += t[j+1:i] return ans def print_secret(filename) : f = open(filename, 'r') ans = [] for line in f : ans.append(get_secret(line)) for a in ans : print(a) exec(input().strip()) |
# 0167, 2022-03-24 08:15:07, --- (0%) def get_secret(t): ans = '' m = t[0] t = t[1:] i = 0 ; j = 0 while True: if i == len(t): break if m == t[i] and j == 0: j = 1 elif m == t[i] and j == 1: j = 0 elif j == 1: ans += t[i] i += 1 return ans | # 0168, 2022-03-24 08:18:10, --- (0%) def get_secret(t): ans = '' m = t[0] t = t[1:] i = 0 ; j = 0 while True: if i == len(t): break if m == t[i] and j == 0: j = 1 elif m == t[i] and j == 1: j = 0 elif j == 1: ans += t[i] i += 1 return ans def print_secret(filename): f = open(filename,'r') for line in f: line = line.strip() print(get_secret(line)) | # 0169, 2022-03-24 08:19:03, PPP (100%) def get_secret(t): ans = '' m = t[0] t = t[1:] i = 0 ; j = 0 while True: if i == len(t): break if m == t[i] and j == 0: j = 1 elif m == t[i] and j == 1: j = 0 elif j == 1: ans += t[i] i += 1 return ans def print_secret(filename): f = open(filename,'r') for line in f: line = line.strip() print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0170, 2022-03-24 08:17:59, compilation error (0%) def get_secret(t): x = t[0] t = True s = '' for e in t: if e == x and t == True: t = Fasle elif e == x: t == True elif t == True: s += e return s def print_secret(filename): with open(filename) as InFile: for t in InFile: print(def get_secret(t)) exec(input().strip()) # DON'T remove this line | # 0171, 2022-03-24 08:19:06, xxx (0%) def get_secret(t): x = t[0] t = True s = '' for e in t: if e == x and t == True: t = Fasle elif e == x: t == True elif t == True: s += e return s def print_secret(filename): with open(filename) as InFile: for t in InFile: print(get_secret(t)) exec(input().strip()) # DON'T remove this line | # 0172, 2022-03-24 08:20:43, PPP (100%) def get_secret(t): x = t[0] c = True ans = "" for ch in t: if ch == x and c == True: c = False elif ch == x: c = True elif c == True: ans += ch return ans # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0173, 2022-03-24 08:14:27, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] w = "" y = False for i in range(1,len(t)): if t[i] == w: y = not y if y: w += t[i] return w.replace(x,"") def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด u = open(filename) o = u.readlines() for v in o: print(get_secret(v)) exec(input().strip()) # DON'T remove t | # 0174, 2022-03-24 08:15:36, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] w = "" y = False for i in range(1,len(t)): if t[i] == w: y = not y if y: w += t[i] return w.replace(x,"") def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด u = open(filename) o = u.readlines() for v in o: print(get_secret(v)) exec(input().strip()) # DON'T remove this line | # 0175, 2022-03-24 08:17:09, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] w = "" y = False for i in range(1,len(t)): if t[i] == x: y = not y if y: w += t[i] return w.replace(x,"") def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด u = open(filename) o = u.readlines() for v in o: print(get_secret(v)) exec(input().strip()) # DON'T remove this line |
# 0176, 2022-03-24 08:04:42, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t find = t[0] res = '' for i in range(1, len(t[1:])-1): if t[i-1] == find == t[i+1]: res += t[i] return res def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line | # 0177, 2022-03-24 08:08:28, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t find = t[0] res = '' found = False prev = True for i in range(1, len(t)): if t[i] == find: found, prev = prev, found if found and t[i] != find: res += t[i] return res def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line | # 0178, 2022-03-24 08:09:20, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t find = t[0] res = '' found = False prev = True for i in range(1, len(t)): if t[i] == find: found, prev = prev, found if found and t[i] != find: res += t[i] return res def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename, 'r') as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0179, 2022-03-24 08:19:44, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] secret = [] text = t[1:] start = -1 while True: start = text.find(code, start + 1) if start == -1: break else: end = text.find(code, start + 1) if end == -1: break secret.append(text[start+1:end]) start = end if len(secret) == 0: return '' else: secretcode = ''.join(secret) return secretcode def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') listofsecret = [] for line in fn: text = line.strip() secret = get_secret(text) listofsecret.append(secret) listofsecret = '\n'.join(listofsecret) fn.close() print(listofsecret) return print_secret("gra.txt") exec(input().strip()) # DON'T remove this line | # 0180, 2022-03-24 08:19:54, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] secret = [] text = t[1:] start = -1 while True: start = text.find(code, start + 1) if start == -1: break else: end = text.find(code, start + 1) if end == -1: break secret.append(text[start+1:end]) start = end if len(secret) == 0: return '' else: secretcode = ''.join(secret) return secretcode def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') listofsecret = [] for line in fn: text = line.strip() secret = get_secret(text) listofsecret.append(secret) listofsecret = '\n'.join(listofsecret) fn.close() print(listofsecret) return print_secret("gra.txt") exec(input().strip()) # DON'T remove this line | # 0181, 2022-03-24 08:19:59, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] secret = [] text = t[1:] start = -1 while True: start = text.find(code, start + 1) if start == -1: break else: end = text.find(code, start + 1) if end == -1: break secret.append(text[start+1:end]) start = end if len(secret) == 0: return '' else: secretcode = ''.join(secret) return secretcode def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') listofsecret = [] for line in fn: text = line.strip() secret = get_secret(text) listofsecret.append(secret) listofsecret = '\n'.join(listofsecret) fn.close() print(listofsecret) return exec(input().strip()) # DON'T remove this line |
# 0182, 2022-03-24 08:14:53, xxx (0%) def get_secret(t): keyword = t[0] sentence = t[1:].split(keyword) newword = [sentence[i] for i in sentence if i%2==1] for i in newword: result += i return result def print_secret(filename): file = open(filename,"r") for line in file: print(get_secret(line)) file.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0183, 2022-03-24 08:15:09, xxx (0%) def get_secret(t): keyword = t[0] sentence = t[1:].split(keyword) newword = [sentence[i] for i in sentence if i%2==1] for i in newword: result += i return result def print_secret(filename): file = open(filename,"r") for line in file: print(get_secret(line)) file.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0184, 2022-03-24 08:19:41, PPP (100%) def get_secret(t): keyword = t[0] sentence = t[1:] result = "" sentence = sentence.split(keyword) newword = [sentence[i] for i in range(len(sentence)) if i%2==1] for i in newword: result += i return result def print_secret(filename): file = open(filename,"r") for line in file: print(get_secret(line)) file.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0185, 2022-03-24 08:11:09, --- (0%) def get_secret(t): secret = '' t = t.split(t[0]) for i in range(1,len(t)): if i % 2 == 0: secret += t[i] return secret | # 0186, 2022-03-24 08:14:40, --- (0%) def get_secret(t): secret = '' t = t.split(t[0]) for i in range(1,len(t)): if i % 2 == 0: secret += t[i] return secret def print_secret(filename): item = open(filename) for i in item.readlines(): i = i.strip() print(get_secret(i)) | # 0187, 2022-03-24 08:16:41, PPP (100%) def get_secret(t): secret = '' t = t.split(t[0]) for i in range(1,len(t)): if i % 2 == 0: secret += t[i] return secret def print_secret(filename): item = open(filename) for i in item.readlines(): i = i.strip() print(get_secret(i)) exec(input().strip()) |
# 0188, 2022-03-24 08:12:44, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] t = t.split(s) ss = '' for i in range(1,len(t)//2): ss+= t[i*2] return ss def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename) as f: for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0189, 2022-03-24 08:15:09, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] t = t.split(s) ss = '' for i in range(1,len(t)//2): ss+= t[i*2] return ss def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, 'r') for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0190, 2022-03-24 08:15:46, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] t = t.split(s) ss = '' for i in range(1,len(t)//2): ss+= t[i*2] return ss def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, 'r') for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0191, 2022-03-24 08:14:00, PPP (100%) # A.txt def get_secret(t): check = t[0] x = '' d = 0 for e in t : if e == check : d += 1 elif d%2 == 0 : x += e return x def print_secret(filename): file = open(filename,'r') for line in file : print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0192, 2022-03-24 08:15:58, PPP (100%) # A.txt def get_secret(t): check = t[0] x = '' d = 0 for e in t : if e == check : d += 1 elif d%2 == 0 : x += e return x def print_secret(filename): file = open(filename,'r') for line in file : print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line | # 0193, 2022-03-24 08:19:53, PPP (100%) # A.txt def get_secret(t): check = t[0] x = '' d = 0 for e in t[1::] : if e == check : d += 1 elif d%2 == 1 : x += e return x def print_secret(filename): file = open(filename,'r') for line in file : print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line |
# 0194, 2022-03-24 08:05:29, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[:-1] out = '' special = '!@#$%^&*()_+{}[];<>?"'+"'" for i in range(len(t)-2): if t[i] in special and t[i+2] in special: out += t[i+1] return out | # 0195, 2022-03-24 08:05:44, --x (0%) def get_secret(t): t = t[:-1] out = '' special = '!@#$%^&*()_+{}[];<>?"'+"'" for i in range(len(t)-2): if t[i] in special and t[i+2] in special: out += t[i+1] return out exec(input().strip()) # DON'T remove this line | # 0196, 2022-03-24 08:13:49, PPP (100%) def get_secret(t): t0 = t[0] t = t[1:] out = t.split(t0) secret = out[1::2] a = ''.join(secret) return a def print_secret(filename): files = open(filename,'r') for line in files: print(get_secret(line)) files.close() exec(input().strip()) # DON'T remove this line |
# 0197, 2022-03-24 08:14:17, PP- (67%) def get_secret(t): w='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' for e in t: if e != w: sym=e break t=t.split(sym) t=t[0::2] t=t[1:] t=''.join(t) return t def print_secret(filename): f=open(filename,'r') for line in f: line=get_secret(line) return line f.close() exec(input().strip()) # DON'T remove this line | # 0198, 2022-03-24 08:19:43, PPP (100%) def get_secret(t): w='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' for e in t: if e != w: sym=e break t=t.split(sym) t=t[0::2] t=t[1:] t=''.join(t) return t def print_secret(filename): f=open(filename,'r') for line in f: line=get_secret(line) print(line) f.close() exec(input().strip()) # DON'T remove this line |
# 0199, 2022-03-24 08:14:17, PPP (100%) def get_secret(t): e = t[0] word1 = t[1:].split(e) word2 = word1[1::2] final = ('').join(word2) return final def print_secret(filename): note = open(filename, 'r') for i in note: print (get_secret(i)) return exec(input().strip()) # DON'T remove this line | # 0200, 2022-03-24 08:16:24, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t e = t[0] word1 = t[1:].split(e) word2 = word1[1::2] final = ('').join(word2) return final def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด note = open(filename, 'r') for i in note: print (get_secret(i)) return exec(input().strip()) # DON'T remove this line |
# 0201, 2022-03-24 08:10:49, --- (0%) def get_secret(t) : s = '' x = t[0] tt = t[1::] q = tt.split(x) z = q[1::2] for e in z : s += e return s | # 0202, 2022-03-24 08:13:48, PPP (100%) def get_secret(t) : s = '' x = t[0] tt = t[1::] q = tt.split(x) z = q[1::2] for e in z : s += e return s def print_secret(filename): o = open(filename, "r") for line in o : print(get_secret(line)) o.close() exec(input().strip()) |
# 0203, 2022-03-24 08:06:37, --- (0%) def get_secret(t): ch = t[0] t = t[1:] l = t.split(ch) return "".join(l[1::2]) def print_secret(filename): with open(filename) as f: for l in f: print(get_secret(l)) | # 0204, 2022-03-24 08:07:26, PPP (100%) def get_secret(t): ch = t[0] t = t[1:] l = t.split(ch) return "".join(l[1::2]) def print_secret(filename): with open(filename) as f: for l in f: print(get_secret(l)) exec(input().strip()) |
# 0205, 2022-03-24 08:17:25, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] y = t.strip().split(x) z = y[2::2] return ''.join(z) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด x = open(filename, 'r') y = x.readlines() for e in y : print(get_secret(e)) print_secret("data.txt") exec(input().strip()) # DON'T remove this line | # 0206, 2022-03-24 08:17:39, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] y = t.strip().split(x) z = y[2::2] return ''.join(z) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด x = open(filename, 'r') y = x.readlines() for e in y : print(get_secret(e)) exec(input().strip()) # DON'T remove this line |
# 0207, 2022-03-24 08:11:38, --- (0%) def get_secret(t): check = 0 ans = '' symbol = '\'"()[]{}=+-_*&^%$#@!/\\,.<>?;:' for i in range(1,len(t)): if t[i] == '$' and check == 0: check = 1 elif t[i] == '$' and check == 1: check = 0 elif check == 1: ans += t[i] return ans def print_secret(filename): file = open(filename,'r') for line in file: print(get_secret(line.strip())) return exec(input().strip()) | # 0208, 2022-03-24 08:16:03, PPP (100%) def get_secret(t): z = 0 code = t[0] y = '' t = t[1:] t = t.split(code) for i in t : if not(z == 0 and z == len(t)): if z % 2 != 0: y += i z += 1 return y def print_secret(filename): file = open(filename,'r') for line in file: print(get_secret(line.strip())) exec(input().strip()) |
# 0209, 2022-03-24 08:14:29, --- (0%) def get_secret(t): t = t.split("t[0]") t = t[2::2] return "".join(t) def print_secret(filename): data = open(filename,"r",encoding="utf-8") for line in data: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0210, 2022-03-24 08:15:27, PPP (100%) def get_secret(t): t = t.split(t[0]) t = t[2::2] return "".join(t) def print_secret(filename): data = open(filename,"r",encoding="utf-8") for line in data: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0211, 2022-03-24 08:09:19, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] n = t.find(code, 1) ans= '' while n < len(t)-1: if t[n+1] != code: ans += t[n+1] n += 1 else: n = t.find(code, n+1) n = t.find(code, n+1) if n == -1: return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0212, 2022-03-24 08:11:57, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] n = t.find(code, 1) ans= '' while n < len(t)-1: if t[n+1] != code: ans += t[n+1] n += 1 else: n = t.find(code, n+1) n = t.find(code, n+1) if n == -1: return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for line in f: print(get_secret(line.strip())) exec(input().strip()) # DON'T remove this line |
# 0213, 2022-03-24 08:08:30, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = False b = '' t = t[1:] for i in range(len(t)-1): if t[i] == '$': a = True elif a : b += i if t[i+1] == '$': a = False return(b) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด z = open(filename,'r') for i in z: a = get_secret(i) print(a) z.close exec(input().strip()) # DON'T remove this line | # 0214, 2022-03-24 08:15:44, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = False b = '' c = t[0] t = t[1:] for i in range(len(t)-1): if t[i] == c and a: a = False elif t[i] == c: a = True if a: b += t[i] b = b[1:].split(c) return(''.join(b)) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด z = open(filename,'r') for i in z: a = get_secret(i) print(a) z.close exec(input().strip()) # DON'T remove this line |
# 0215, 2022-03-24 08:07:20, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym = '~`!@#$%^&*()_-=+{}[]|/\\:;"\'<>,.?' for i in sym: if i in t[1:]: break text = t[1:].split(i) return ''.join(text[1::2]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for l in f: get_secret(l) f.close() return exec(input().strip()) # DON'T remove this line | # 0216, 2022-03-24 08:11:35, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t text = t[1:].split(t[0]) return ''.join(text[1::2]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, 'r') for l in f: print(get_secret(l)) f.close() return exec(input().strip()) # DON'T remove this line |
# 0217, 2022-03-24 08:10:29, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t u=t[0] p=t[1:] a=p.split(str(u)) return ''.join(a[1::2]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด x=open(filename) r=x.readline().strip() while len(r)>0: print(get_secret(r)) r=x.readline().strip() exec(input().strip()) # DON'T remove this line | # 0218, 2022-03-24 08:19:23, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t u=t[0] p=t[1:] a=p.split(str(u)) return ''.join(a[1::2]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด x=open(filename) r=x.readline().strip() while len(r)>0: print(get_secret(r)) r=x.readline().strip() x.close() exec(input().strip()) # DON'T remove this line |
# 0219, 2022-03-24 08:02:42, --- (0%) def get_secret(t): code = t[0] res = "" inside = False for ch in t[1:]: if ch == code: inside = not inside if inside: res += ch return res def print_secret(filename): with open(filename, "r", encoding="utf-8") as f: for line in f: print(get_secret(line)) exec(input().strip()) | # 0220, 2022-03-24 08:03:50, PPP (100%) def get_secret(t): code = t[0] res = "" inside = False for ch in t[1:]: if ch == code: inside = not inside elif inside: res += ch return res def print_secret(filename): with open(filename, "r", encoding="utf-8") as f: for line in f: print(get_secret(line)) exec(input().strip()) |
# 0221, 2022-03-24 08:10:13, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t string = t.split(t[0]) result = "" for i in range(1, len(string) // 2): result += string[2 * i] return result def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for line in f: print(get_secret(line.strip())) f.close exec(input().strip()) # DON'T remove this line | # 0222, 2022-03-24 08:15:00, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t string = t.split(t[0]) result = "" for i in range(1, len(string) // 2): result += string[2 * i] return result def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for line in f: print(get_secret(line[:-1])) f.close exec(input().strip()) # DON'T remove this line |
# 0223, 2022-03-24 08:17:24, PPP (100%) def get_secret(t): อะไร = t[0] ต้องการ = True คำตอบ = "" for ch in t: if ch == อะไร and ต้องการ: ต้องการ = False elif ch == อะไร: ต้องการ = True elif ต้องการ: คำตอบ += ch return คำตอบ def print_secret(filename): with open(filename) as ไฟล์: for บรรทัด in ไฟล์: print(get_secret(บรรทัด)) exec(input().strip()) | # 0224, 2022-03-24 08:19:09, PPP (100%) def get_secret(t): what = t[0] want = True ans = "" for ch in t: if ch == what and want: want = False elif ch == what: want = True elif want: ans += ch return ans def print_secret(filename): with open(filename) as file: for line in file: print(get_secret(line)) exec(input().strip()) |
# 0225, 2022-03-24 08:12:36, --- (0%) def get_secret(t): x=t[0] z=t.find(x,1) r=[] while z!=-1: zz=t.find(x,z+1) r.append(t[z+1:zz]) z=t.find(x,zz+1) print(z) return ''.join(r) def print_secret(filename): infile=open(filename,'r') for line in infile: line=line.strip() print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0226, 2022-03-24 08:13:18, PPP (100%) def get_secret(t): x=t[0] z=t.find(x,1) r=[] while z!=-1: zz=t.find(x,z+1) r.append(t[z+1:zz]) z=t.find(x,zz+1) return ''.join(r) def print_secret(filename): infile=open(filename,'r') for line in infile: line=line.strip() print(get_secret(line)) infile.close() exec(input().strip()) |
# 0227, 2022-03-24 08:15:11, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t check = t[0] ans = '' checked = False for i in range(1, len(t)): if t[i] == check: checked = True if checked: ans += t[i] ans = ans.split(check) return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a = open(filename, 'r') for b in a: print(get_secret(b)) a.close() exec(input().strip()) # DON'T remove this line | # 0228, 2022-03-24 08:16:09, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t check = t[0] ans = '' checked = False for i in range(1, len(t)): if t[i] == check: if checked == False: checked = True else: checked = False if checked: ans += t[i] ans = ans.split(check) return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด\ a = open(filename, 'r') for b in a: print(get_secret(b)) a.close() exec(input().strip()) # DON'T remove this line |
# 0229, 2022-03-24 08:14:20, --- (0%) def get_secret(t): code = "" separ = t[0] l = t[1:].split(separ) n = 0 for i in l[:-1]: n += 1 if n % 2 == 0: code += i return code def print_secret(filename): with open(filename) as f: data = [i for i in f.read().split("\n") if i != ""] [print(get_secret(i)) for i in data] | # 0230, 2022-03-24 08:14:56, PPP (100%) def get_secret(t): code = "" separ = t[0] l = t[1:].split(separ) n = 0 for i in l[:-1]: n += 1 if n % 2 == 0: code += i return code def print_secret(filename): with open(filename) as f: data = [i for i in f.read().split("\n") if i != ""] [print(get_secret(i)) for i in data] exec(input().strip()) |
# 0231, 2022-03-24 08:11:53, --- (0%) def get_secret(t): key = t[0] l = t[1:].split(key) sec = '' for i in range(len(l)//2) : sec += l[2*i+1] return(sec) def print_secret(filename): filIn = open(filename,'r') for line in filIn : print(get_secret(line)) return # print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) # print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) # print("%"+get_secret("$hahahanosecret")+"%") # print_secret("data.txt") | # 0232, 2022-03-24 08:13:12, PPP (100%) def get_secret(t): key = t[0] l = t[1:].split(key) sec = '' for i in range(len(l)//2) : sec += l[2*i+1] return(sec) def print_secret(filename): filIn = open(filename,'r') for line in filIn : print(get_secret(line)) return exec(input().strip()) # DON'T remove this line # print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) # print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) # print("%"+get_secret("$hahahanosecret")+"%") # print_secret("data.txt") |
# 0233, 2022-03-24 08:08:50, PPP (100%) def get_secret(t): code = t[0] sec = t.split(code) encode = ''.join(sec[2::2]) return encode def print_secret(filename): with open( filename, 'r', encoding = 'utf-8' ) as f : for line in f : print(get_secret(line.strip())) exec(input().strip()) | # 0234, 2022-03-24 08:10:03, PPP (100%) def get_secret(t): sec = t.split(t[0]) encode = ''.join(sec[2::2]) return encode def print_secret(filename): with open( filename, 'r', encoding = 'utf-8' ) as f : for line in f : print(get_secret(line.strip())) exec(input().strip()) |
# 0235, 2022-03-24 08:12:38, PPP (100%) def get_secret(t): check = t[0];use= False result = "" for e in t[1:]: if e==check:use=not use;continue if use == True:result+=e return result def print_secret(filename): fn=open(filename,'r') for line in fn : print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line | # 0236, 2022-03-24 08:13:29, PPP (100%) def get_secret(t): check = t[0];use= False result = "" for e in t[1:]: if e==check:use=not use;continue if use:result+=e return result def print_secret(filename): fn=open(filename,'r') for line in fn : print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line |
# 0237, 2022-03-24 08:07:28, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = '' selected = t[0] k = 0 p = 0 while True: k = t.find(selected, p+1) p = t.find(selected, k+1) s += t[k:p+1:] if k == -1: break return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename, 'r') for line in data: print(get_secret(line)) data.close() exec(input().strip()) # DON'T remove this line | # 0238, 2022-03-24 08:08:08, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = '' selected = t[0] k = 0 p = 0 while True: k = t.find(selected, p+1) p = t.find(selected, k+1) s += t[k+1:p:] if k == -1: break return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename, 'r') for line in data: print(get_secret(line)) data.close() exec(input().strip()) # DON'T remove this line |
# 0239, 2022-03-24 08:10:34, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] t_list = t.split(key) key_list = [] decoded = '' for i in range(len(t)): if t[i] == key: key_list.append(int(i)) key_list = key_list[1:] for i in range(len(key_list)//2+1): decoded += t_list[2*i] return decoded def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename, 'r') for line in filename: print(get_secret(line)) fin.close() exec(input().strip()) # DON'T remove this line | # 0240, 2022-03-24 08:19:06, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] t_list = t.split(key) key_list = [] decoded = '' for i in range(len(t)): if t[i] == key: key_list.append(int(i)) key_list = key_list[1:] for i in range(len(key_list)//2+1): decoded += t_list[2*i] return decoded def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename, 'r') for line in fin: print(get_secret(line)) fin.close() exec(input().strip()) # DON'T remove this line |
# 0241, 2022-03-24 08:10:46, PPP (100%) def get_secret(t): b = True c = t[0] s = "" t = t[1:] for i in t: if b == False and i != c: s += i if i == c and b == True: b = False elif i == c and b == False: b = True return s def print_secret(filename): f = open(filename,"r") a = [] for l in f: a.append(get_secret(l)) for i in a: print(i) return exec(input().strip()) # | # 0242, 2022-03-24 08:12:37, PPP (100%) def get_secret(t): b = True c = t[0] s = "" t = t[1:] for i in t: if b == False and i != c: s += i if i == c and b == True: b = False elif i == c and b == False: b = True return s def print_secret(filename): f = open(filename,"r") a = [] for l in f: a.append(get_secret(l)) for i in a: print(i) f.close() return exec(input().strip()) # |
# 0243, 2022-03-24 08:19:44, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym=t[0] t=t[1:] s="" for i in range(len(t)): x=t.find(sym) if x==-1:break y=t.find(sym,x+1) s+=t[x+1:y] t=t[y+1:] print(s) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename,"r") for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0244, 2022-03-24 08:19:58, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym=t[0] t=t[1:] s="" for i in range(len(t)): x=t.find(sym) if x==-1:break y=t.find(sym,x+1) s+=t[x+1:y] t=t[y+1:] return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename,"r") for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0245, 2022-03-24 08:11:14, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง a=t[0] s=[] s1='' g=False for i in t[1:]: if i==a and not g: g=True elif g and i!=a: s1+=i elif g and i==a: s.append(s1) s1='' g=False return ''.join(s) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=open(filename,'r') for i in a: print(get_secret(i)) a.close() | # 0246, 2022-03-24 08:12:20, PPP (100%) def get_secret(t): a=t[0] s=[] s1='' g=False for i in t[1:]: if i==a and not g: g=True elif g and i!=a: s1+=i elif g and i==a: s.append(s1) s1='' g=False return ''.join(s) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=open(filename,'r') for i in a: print(get_secret(i)) a.close() exec(input().strip()) # DON'T remove this line |
# 0247, 2022-03-24 08:10:01, --- (0%) def get_secret(t): r = '' a = t[0] s = t[1:].split(a) if len(s) > 1: c = 0 for e in s: if c%2 == 1: r += e c += 1 return r def print_secret(filename): with open(filename) as fn: for line in fn: print(get_secret(line)) | # 0248, 2022-03-24 08:10:23, PPP (100%) def get_secret(t): r = '' a = t[0] s = t[1:].split(a) if len(s) > 1: c = 0 for e in s: if c%2 == 1: r += e c += 1 return r def print_secret(filename): with open(filename) as fn: for line in fn: print(get_secret(line)) exec(input().strip()) |
# 0249, 2022-03-24 08:18:18, xxx (0%) def get_secret(t): x=t[0] z=t.split(x) y=z[2::2] a=''.join(y) return a def print_secret(filename): x=open(filename,'r') for line in x: print(get_secret(line)) exec(input().strip()) print_secret("data.txt") | # 0250, 2022-03-24 08:18:34, PPP (100%) def get_secret(t): x=t[0] z=t.split(x) y=z[2::2] a=''.join(y) return a def print_secret(filename): x=open(filename,'r') for line in x: print(get_secret(line)) exec(input().strip()) |
# 0251, 2022-03-24 08:11:53, PPx (67%) def get_secret(t): key = t[0] L = t.split(key) OK = L[2::2] W = "".join(OK) return W exec(input().strip()) # DON'T remove this line | # 0252, 2022-03-24 08:13:38, PPP (100%) def get_secret(t): key = t[0] L = t.split(key) OK = L[2::2] W = "".join(OK) return W def print_secret(filename): A = open(filename,'r') for line in A: print (get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0253, 2022-03-24 08:12:56, --- (0%) def get_secret(t): a = t[0] b = t.split(a) ans = '' for i in range(2,len(b),2): ans += b[i] return ans def print_secret(filename): f = open(filename,'r') for line in f: print(get_secret(line)) f.close() | # 0254, 2022-03-24 08:13:30, PPP (100%) def get_secret(t): a = t[0] b = t.split(a) ans = '' for i in range(2,len(b),2): ans += b[i] return ans def print_secret(filename): f = open(filename,'r') for line in f: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line |
# 0255, 2022-03-24 08:17:46, xxx (0%) def get_secret(t): char = t[0] out = '' splited = t[1:].split(char) for x,z in enumerate(splited): if x%2 == 1: out += splited[z] return out def print_secret(filename): filein = open(filename,"r") for y in filein: print(get_secret(y)) filein.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0256, 2022-03-24 08:18:06, PPP (100%) def get_secret(t): char = t[0] out = '' splited = t[1:].split(char) for x,z in enumerate(splited): if x%2 == 1: out += z return out def print_secret(filename): filein = open(filename,"r") for y in filein: print(get_secret(y)) filein.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0257, 2022-03-24 08:14:56, PPP (100%) def get_secret(t): delete = t[0] secret = [] secret1 = '' g=False for i in t[1:]: if i==delete and not g: g=True elif g and i!=delete: secret1+=i elif g and i==delete: secret.append(secret1) secret1='' g=False return ''.join(secret) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename,'r') for i in f: print(get_secret(i)) f.close() exec(input().strip()) # DON'T remove this line | # 0258, 2022-03-24 08:19:51, PPP (100%) def get_secret(t): delete = t[0] secret = [] secret1 = '' g = False for i in t[1:]: if i==delete and not g: g=True elif g and i!=delete: secret1+=i elif g and i==delete: secret.append(secret1) secret1='' g=False else: pass done = ''.join(secret) return done def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename,'r') for i in f: print(get_secret(i)) f.close exec(input().strip()) # DON'T remove this line |
# 0259, 2022-03-24 08:09:49, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a=t[0] t=t[1:] m=t.split(a) # print(m) ans=m[1::2] return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename,"r") for line in f: # print(line) print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0260, 2022-03-24 08:16:14, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a=t[0] t=t[1:] m=t.split(a) # print(m) ans=m[1::2] return ''.join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename,"r") for line in f: # print(line) print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line |
# 0261, 2022-03-24 08:11:39, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t a = a.split(a[0]) b = (len(a)//2) * 2 c = a[2:b:2] c = "".join(c) return c def print_secret(filename): print("a") # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infine = open(filename, "r") for line in infine: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0262, 2022-03-24 08:12:31, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t a = a.split(a[0]) b = (len(a)//2) * 2 c = a[2:b:2] c = "".join(c) return c def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infine = open(filename, "r") for line in infine: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0263, 2022-03-24 08:07:27, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] t = t[1:] op = False s = "" for e in t: if e == code and op == False: op = True elif e == code and op == True: op = False elif op == True: s += e return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filemname, "r") for line in f: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line | # 0264, 2022-03-24 08:09:20, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0] t = t[1:] op = False s = "" for e in t: if e == code and op == False: op = True elif e == code and op == True: op = False elif op == True: s += e return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for line in f: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line |
# 0265, 2022-03-24 08:11:29, PP- (67%) def get_secret(t): key = t[0:1] t1 = t.strip().split(key) if t1[0] != '': return ''.join(t1[1::2]) else: return ''.join(t1[2::2]) def print_secret(filename): fn = open(filename,"r") for line in fn: line = line.strip() return get_secret(line) exec(input().strip()) # DON'T remove this line | # 0266, 2022-03-24 08:12:55, PPP (100%) def get_secret(t): key = t[0:1] t1 = t.strip().split(key) if t1[0] != '': return ''.join(t1[1::2]) else: return ''.join(t1[2::2]) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fn = open(filename,"r") for line in fn: line = line.strip() print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล exec(input().strip()) # DON'T remove this line |
# 0267, 2022-03-24 08:17:45, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s=t[0] c=0 out='' for i in t[1:]: if i==s: c+=1 if c%2!=0: out+=i out_1 for i in out: if i!=s: out_1+=i return out_1 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename) for i in fn: print(get_secret(i)) #========================================================================= exec(input().strip()) | # 0268, 2022-03-24 08:18:46, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s=t[0] c=0 out='' for i in t[1:]: if i==s: c+=1 if c%2!=0: out+=i out_1='' for i in out: if i!=s: out_1+=i return out_1 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename) for i in fn: print(get_secret(i)) #========================================================================= exec(input().strip()) |
# 0269, 2022-03-24 08:16:26, PPx (67%) def get_secret(t) : a = t[0] b = 0 c = '' for i in range(1,len(t)): if b == 1 and t[i] != a: c += t[i] elif t[i] == a and b == 0: b = 1 elif t[i] == a and b == 1: b = 0 return c exec(input().strip()) # DON'T remove this line | # 0270, 2022-03-24 08:17:59, PPP (100%) def get_secret(t) : a = t[0] b = 0 c = '' for i in range(1,len(t)): if b == 1 and t[i] != a: c += t[i] elif t[i] == a and b == 0: b = 1 elif t[i] == a and b == 1: b = 0 return c def print_secret(filename): t=open(filename) for i in t: print(get_secret(i)) return exec(input().strip()) # DON'T remove this line |
# 0271, 2022-03-24 08:14:08, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริงt ch = t[0] s = "" tmp = "" is_open = False for i in range(1, len(t)): if t[i] == ch: if is_open == True: is_open = False s += tmp tmp = "" else: is_open = True continue if is_open: tmp += t[i] return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename, "r").readlines() for line in data: #print(line) print(get_secret(line) exec(input().strip()) # DON'T remove this line | # 0272, 2022-03-24 08:16:44, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t ch = t[0] s = "" tmp = "" is_open = False for i in range(1, len(t)): if t[i] == ch: if is_open == True: is_open = False s += tmp tmp = "" else: is_open = True continue if is_open: tmp += t[i] return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename, "r").readlines() for line in data: #print(line) print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0273, 2022-03-24 08:08:34, PPx (67%) def get_secret(t): special_char = t[0] a = t[1:].split(special_char) output = '' for i in a[1::2]: output += i return output def print_secret(filename): f = open(filename) lines = f.readlines() for line in lines: print(get_sectet(line)) exec(input().strip()) # DON'T remove this line | # 0274, 2022-03-24 08:10:11, PPP (100%) def get_secret(t): special_char = t[0] a = t[1:].split(special_char) output = '' for i in a[1::2]: output += i return output def print_secret(filename): f = open(filename) lines = f.readlines() for line in lines: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line |
# 0275, 2022-03-24 08:19:49, PPx (67%) def get_secret(t): char = t[0] t = t[1:] s = "" temp_str = "" first = False for i in range(len(t)): if t[i] == char: if first: s += temp_str temp_str = "" first = False else: first = True continue if first: temp_str += t[i] return s def print_secret(filename): file = open(filename) for line in data: print(get_secret(line)) exec(input().strip()) #DON'T remove this line | # 0276, 2022-03-24 08:21:07, PPP (100%) def get_secret(t): char = t[0] t = t[1:] s = "" temp_str = "" first = False for i in range(len(t)): if t[i] == char: if first: s += temp_str temp_str = "" first = False else: first = True continue if first: temp_str += t[i] return s def print_secret(filename): file = open(filename) for line in file: print(get_secret(line)) exec(input().strip()) #DON'T remove this line |
# 0277, 2022-03-24 08:19:17, PPx (67%) def get_secret(t): mes = "" logic = 1 chsplit = t[0] for i in t: if logic == 1 and i == chsplit : logic = 0 elif logic == 1: mes += i elif i == chsplit: logic = 1 return mes def print_secret(filename): file = open(filename, encoding='UTF-8') data = file.readline() for line in data.split('\n') : print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0278, 2022-03-24 08:20:13, PPP (100%) def get_secret(t): mes = "" logic = 1 chsplit = t[0] for i in t: if logic == 1 and i == chsplit : logic = 0 elif logic == 1: mes += i elif i == chsplit: logic = 1 return mes def print_secret(filename): with open(filename) as file: for data in file: print(get_secret(data)) exec(input().strip()) # DON'T remove this line |
# 0279, 2022-03-24 08:13:57, P-P (67%) def get_secret(t): s = t[0] t = t[1::] inx_last = 0 d = [] while inx_last != -1 : inx = t.find(s,inx_last) inx_last = t.find(s,inx+1) d.append(t[inx+1:inx_last]) ans = "" for e in d[0::2] : ans += e return ans def print_secret(filename): file = open(filename,"r") for line in file : print(get_secret(line)) exec(input().strip()) | # 0280, 2022-03-24 08:17:34, PPP (100%) def get_secret(t): s = t[0] t = t[1::] inx_last = 0 d = [] while inx_last != -1 : inx = t.find(s,inx_last) inx_last = t.find(s,inx+1) if inx != -1 and inx_last != -1 : d.append(t[inx+1:inx_last]) ans = "" for e in d[0::2] : ans += e return ans def print_secret(filename): file = open(filename,"r") for line in file : print(get_secret(line)) exec(input().strip()) |
# 0281, 2022-03-24 08:13:47, PPP (100%) def get_secret(t): s = '' d = t.split(t[0]) for i in d[0::2]: s += i return s def print_secret(filename): with open(filename) as f: for line in f: print( get_secret(line)) exec(input().strip()) |
# 0282, 2022-03-24 08:19:55, PPP (100%) def get_secret(t): tt=t.strip() x=tt[0] notuse=t.split(x) use=notuse[2::2] use= ''.join(use) return use def print_secret(filename): use=open(filename,'r') for line in use: print(get_secret(line)) exec(input().strip()) |
# 0283, 2022-03-24 08:08:05, PPP (100%) def get_secret(t): new = [] ec = t[0] new_t = t.split(ec) for i in range(2,len(new_t),2): new.append(new_t[i]) phase = "".join(new) return phase def print_secret(filename): data = open(filename, "r") for line in data: phase = get_secret(line) print(phase) exec(input().strip()) |
# 0284, 2022-03-24 08:18:00, PPP (100%) def get_secret(t): d = t[0] w = True ans = "" for ch in t: if ch == d and w: w = False elif ch == d: w = True elif w: ans += ch return ans # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0285, 2022-03-24 08:11:07, PPP (100%) import string def get_secret(t): first = t[0] string = t.split(first) text = '' for i in range(1,len(string)//2): text += string[2*i] return text def print_secret(filename): file = open(filename, "r") for line in file: print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line |
# 0286, 2022-03-24 08:08:24, PPP (100%) def get_secret(t): c = t[0] s = '' do = False for e in t[1:]: if e == c: do = not do elif do: s+= e return s def print_secret(filename): f = open(filename) for line in f: print(get_secret(line.strip())) exec(input().strip()) |
# 0287, 2022-03-24 08:11:39, PPP (100%) def get_secret(t): sym = t[0] k = t.find(sym,1) t = t[k+1:].split(sym) out = '' for i in t[::2]: out += i return out def print_secret(filename): a = open(filename,'r') for i in a: k = get_secret(i) print(k) exec(input().strip()) # DON'T remove this line |
# 0288, 2022-03-24 08:11:47, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[0] t = t.strip().split(a) t = t[0::2] return ''.join(t) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for line in f: line = get_secret(line) print(line) exec(input().strip()) # DON'T remove this line |
# 0289, 2022-03-24 08:10:11, PPP (100%) alp = "abcdefghijklmnopqrstuvwxyz" def get_secret(t): result = "" sec = t[0] t = t[1:] t = t.split(sec) for i in range(len(t)): if i%2 == 1: result += t[i] return result def print_secret(filename): data = open(filename,"r") for line in data: print(get_secret(line)) data.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0290, 2022-03-24 08:15:06, PPP (100%) def get_secret(t): x = t.split(t[0]) y = x[2::2] return "".join(y) def print_secret(filename): x = open(filename, "r") for line in x: y = get_secret(line) print(y) exec(input().strip()) |
# 0291, 2022-03-24 08:12:46, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = "" c = 0 while c != -1 : b = t.find(t[0],c+1) c = t.find(t[0],b+1) if b== -1 or c == -1 : break a += t[b+1:c] return a def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for i in f : print(get_secret(i)) f.close exec(input().strip()) # DON'T remove this line |
# 0292, 2022-03-24 08:07:58, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[0] b = "" ticker = False for i in range(1,len(t)): c = t[i] if c == a: ticker = not ticker if ticker and c != a: b += c return b def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fo = open(filename) for line in fo: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0293, 2022-03-24 08:09:35, PPP (100%) def get_secret(t): x = t[0] t = t.split(x) z = t[2::2] return(''.join(z)) def print_secret(filename): s = open(filename,'r') for line in s : print(get_secret(line)) s.close() exec(input().strip()) # DON'T remove this line |
# 0294, 2022-03-24 08:15:55, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym = t[0] t = t[1:] k = [] for i in range(len(t)) : if t[i] == sym : j = t.find(sym,i+1) k.append(t[i+1:int(j)]) k = k[0::2] return "".join(k) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) line = f.readline() while len(line) != 0 : print(get_secret(line)) line = f.readline() exec(input().strip()) # DON'T remove this line |
# 0295, 2022-03-24 08:12:43, PPP (100%) def get_secret(t): cx = t[0] ot = "" op = False for i in range(1,len(t)): if t[i] == cx: op = not op if op: ot += t[i] return ot.replace(cx,"") def print_secret(filename): f = open(filename) data = f.readlines() for line in data: print(get_secret(line)) exec(input().strip()) |
# 0296, 2022-03-24 08:19:19, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t want = t[0] t = t.split(want) a=t[2::2] ans = ''.join(a) return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด keep = [] book = open(filename,"r") for line in book: keep.append(line) for i in keep: print(get_secret(i)) book.close() exec(input().strip()) # DON'T remove this line |
# 0297, 2022-03-24 08:14:03, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sign = t[0] status = True final = '' for i in range(len(t)): if status: if t[i] != sign: final += t[i] if t[i] == sign: status = not status return final def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile = open(filename, 'r') final = '' for line in infile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0298, 2022-03-24 08:21:02, PPP (100%) def get_secret(t): a = t[0] b = True c = "" for ch in t: if ch == a and b: b = False elif ch == a: b = True elif b: c += ch return c def print_secret(filename): with open(filename) as f: for x in f: print(get_secret(x)) exec(input().strip()) # DON'T remove this lin |
# 0299, 2022-03-24 08:10:02, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] out = "" x = False for i in range(1,len(t)): if t[i] == key: x = not x if x: out += t[i] return out.replace(key,"") def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) x = f.readlines() for line in x: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0300, 2022-03-24 08:14:08, PPP (100%) def get_secret(t): check = 0 code = t[0] ans = '' t = t[1:] t = t.split(code) for i in t : if not(check == 0 and check == len(t)) and check % 2 != 0 : ans += i check += 1 return ans def print_secret(filename): file = open(filename,'r') for line in file : print(get_secret(line)) file.close() exec(input().strip()) |
# 0301, 2022-03-24 08:16:22, PPP (100%) def get_secret(t): key=t[0] ans='' for i in t[1:]: ans+=i check=False result='' for i in ans: if i==key and check==False: check=True elif check==True and i!=key: result+=i elif check==True and i==key: check=False return result def print_secret(filename): f=open(filename,'r') for i in f: print(get_secret(i)) f.close() exec(input().strip()) |
# 0302, 2022-03-24 08:20:50, PPP (100%) def get_secret(t): x = t[0] a = '' c = False for e in t[1:]: if e == x: c = not c elif c: a+= e return a def print_secret(filename): x = open(filename) for line in x: print(get_secret(line.strip())) exec(input().strip()) |
# 0303, 2022-03-24 08:15:31, PPP (100%) def get_secret(t): x = t[0] y = True ans= "" for ch in t: if ch == x and y: y = False elif ch == x : y = True elif y: ans += ch return ans def print_secret(filename): with open(filename) as InFile: for line in InFile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0304, 2022-03-24 08:21:00, PPP (100%) def get_secret(t): output = "" special = t[0] using = t[1:].split(special) forresult = using[1::2] for i in range(len(forresult)): output += forresult[i] return output def print_secret(filename): notebook = open(filename,"r") for line in notebook: print(get_secret(line)) notebook.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0305, 2022-03-24 08:10:42, PPP (100%) def get_secret(t) : code = t[0] secret = [] word = '' a = False for i in t[1:] : if i == code and a == False : a = True elif i == code and a == True : a = False secret.append(word) word = '' elif i != code and a == True : word += i ans = ''.join(secret) return ans def print_secret(filename) : fn = open(filename, 'r') for line in fn : print(get_secret(line)) fn.close() exec(input().strip()) |
# 0306, 2022-03-24 08:10:57, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t o = '' a = t.split(t[0]) for i in range(len(a)): if i % 2 == 0: o += a[i] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for i in f: a = get_secret(i) print(a) exec(input().strip()) # DON'T remove this line |
# 0307, 2022-03-24 08:14:37, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t k = t[1:] k = k.split(t[0]) g = '' for e in range (len(k)): if e%2 == 1: g += k[e] return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename,'r') for e in f: print(get_secret(e)) exec(input().strip()) # DON'T remove this line |
# 0308, 2022-03-24 08:15:17, PPP (100%) def get_secret(t): key = t[0] t = t[1:] pos = [] res = [] for i in range(len(t)): if t[i] == key: pos.append(i) for i in range(len(pos)//2): res.append(t[pos[2*i]+1:pos[2*i+1]]) return ''.join(res) def print_secret(filename): f = open(filename, 'r') for line in f: print(get_secret(line.strip())) f.close() exec(input().strip()) # DON'T remove this line |
# 0309, 2022-03-24 08:20:39, PPP (100%) def get_secret(t): l = [] counter = 0 s = '' t = t[1:] for i in t: if counter == 0: if i.isalpha(): pass else: counter += 1 if counter == 1: s += i a = '!@#$%^&*(){}[]|?<>' b = '' c = '' counter = 1 for i in s: if i in a: l.append(b) b = '' else: b+= i for i in range(len(l)): if i%2 == 1: c += str(l[i]) return c def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for line in f: print((get_secret(line))) exec(input().strip()) |
# 0310, 2022-03-24 08:15:26, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # code = t[0] t = t.split(code) d_ans = t[2::2] ans = "".join(d_ans) return ans def print_secret(filename): # # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ # print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด name = open(filename, 'r') for line in name: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0311, 2022-03-24 08:09:43, PPP (100%) def get_secret(t): use = t[0] ck = 1 ss = [] for i in t: if i==use: ck = 1-ck else: if ck==1: ss.append(i) return "".join(ss) def print_secret(filename): ss = open(filename,"r") for l in ss: print(get_secret(l)) return exec(input().strip()) # DON'T remove this line |
# 0312, 2022-03-24 08:08:28, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1 = t[1:] a = t[0] t2 = t1.split(a) t3 = '' for e in t2[1::2]: t3 += e return t3 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0313, 2022-03-24 08:19:17, PPP (100%) def get_secret(t): sym=t[0] decode=t[1::] c=0 k=0 word=[] while decode.find(sym,k) != -1: if c%2==0: start=decode.find(sym,k) k=start+1 c+=1 if c%2==1: end=decode.find(sym,k) k=end+1 c+=1 word.append(decode[start+1:end:]) out=''.join(word) return out def print_secret(filename): f=open(filename, 'r') for line in f: print(get_secret(line)) return exec(input().strip()) # DON'T remove this line |
# 0314, 2022-03-24 08:09:35, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key=t[0] x=t[1::].split(key) return ''.join(x[1::2]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด line = open(filename) for i in line: i=i.strip() print(get_secret(i)) line.close() exec(input().strip()) # DON'T remove this line |
# 0315, 2022-03-24 08:12:35, PPP (100%) def get_secret(t): ck = True a = t[0] text = '' for i in range(len(t)): if t[i]==a: ck = not ck if ck and t[i] != a: text += str(t[i]) return text def print_secret(filename): file = open(filename,'r') a = file.readline() while len(a) != 0: print(get_secret(a)) a = file.readline() exec(input().strip()) # DON'T remove this line |
# 0316, 2022-03-24 08:04:55, PPP (100%) def get_secret(t): ret = '' key = t[0] mode = 0 for i in t[1:]: if i==key: if mode == 0 : mode = 1 else: mode = 0 elif mode == 1: ret += i return ret # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for i in f.readlines(): print(get_secret(i)) exec(input().strip()) # DON'T remove this line |
# 0317, 2022-03-24 08:11:53, PPP (100%) def get_secret(t): result = '' check = True for i in range (len(t)): if t[i] == t[0]: check = not check elif check: result+=t[i] return result def print_secret(filename): fn = open(filename,'r') for line in fn: print(get_secret(line.strip())) exec(input().strip()) # DON'T remove this line |
# 0318, 2022-03-24 08:13:27, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] delk = '' ; is_secret = False dt = t[1:] for i in dt : if i == key : is_secret = not is_secret elif is_secret : delk += i return delk def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename) for line in fin : line = line.strip() print(get_secret(line)) fin.close() exec(input().strip()) # DON'T remove this line |
# 0319, 2022-03-24 08:12:41, PPP (100%) def get_secret(t): splitter = t[0] c_list = t.split(splitter) result = "" for i in range(0, len(c_list), 2): result += c_list[i] return result def print_secret(filename): f1 = open(filename, 'r') lines = f1.readlines() for line in lines: print(get_secret(line)) # print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) # print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) # print("%" + get_secret("$ha ha ha no secret") + "%") # print_secret("data.txt") exec(input().strip()) |
# 0320, 2022-03-24 08:19:25, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t.split(t[0]) if len(a)%2 == 0 : s = '' for i in range(len(a)//2): s += a[2*i] return s else: s = '' for i in range(len(a)//2-1): s += a[2*i] return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a = open(filename,'r') b = a.readlines() for i in b : print(get_secret(i)) exec(input().strip()) # DON'T remove this line |
# 0321, 2022-03-24 08:11:57, PPP (100%) def get_secret(t): b = t[0] a = False ans = [] for i in t[1:]: if i == b: a = not a continue if a == True: ans.append(i) return ''.join(ans) def print_secret(filename): file = open(str(filename), 'r') for line in file: print(get_secret(line)) file.close() exec(input().strip()) |
# 0322, 2022-03-24 08:15:48, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t h = '' g = [] ans = '' s = '' h += t[0] for e in range(1,len(t)): if t[e] == h: g += t[e] if len(g)%2 != 0: ans += t[e] for e in range(len(ans)): if ans[e] != h: s+=ans[e] return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename,'r') for line in fin: print(get_secret(line)) fin.close() return exec(input().strip()) # DON'T remove this line |
# 0323, 2022-03-24 08:11:33, PPP (100%) def get_secret(t): b = t se = t[0] s = b[1:].split(se) ans = '' for i in range(1,len(s),2): ans += s[i] return ans def print_secret(filename): fn = open(filename,'r') for i in fn: m = get_secret(i) print(m) exec(input().strip()) # DON'T remove this line |
# 0324, 2022-03-24 08:13:04, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t cd = t[0] code = '' ch = 0 for i in range(len(t)): if i!=0: if cd == t[i]: if ch==1: ch = 0 else : ch = 1 if ch==1: code = code + t[i] code = code.split(cd) code = ''.join(code) return code def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,'r') for i in range(10000000): line = fn.readline() if len(line)==0: break print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0325, 2022-03-24 08:09:24, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น #return สตริงข้อความลับที่ถอดออกมาจากสตริง t x=t n=x[0] c=0 an='' for i in x[1:]: if i==n: if c==0: c=1 else: c=0 elif c==1: an+=i return an def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=open(filename, 'r') for n in a: print(get_secret(n)) a.close() return'' exec(input().strip()) # DON'T remove this line |
# 0326, 2022-03-24 08:08:28, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t=t.split(t[0]) ans = "".join(t[::2]) return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด with open(filename,'r') as file: lines = file.readlines() for i in lines: print(get_secret(i)) exec(input().strip()) # DON'T remove t |
# 0327, 2022-03-24 08:11:20, PPP (100%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t.split(t[0]) c = "" for i in range(1, len(s) // 2): c =c+s[2*i] return c def print_secret(filename): f = open(filename, "r") for line in f: print(get_secret(line.strip())) f.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0328, 2022-03-24 08:06:34, PPP (100%) def get_secret(t): c0 = t[0] list_t = t.split(c0) word_t = ''.join(list_t[::2][1:]) return word_t def print_secret(filename): with open(filename, mode='r') as f: for line in f: print(get_secret(line)) exec(input().strip()) |
# 0329, 2022-03-24 08:13:32, PPP (100%) def get_secret(t): x = t[0] tt = t.split(x) sc = '' for i in range(len(tt)): if i%2==0: sc += tt[i] return sc def print_secret(filename): f = open(filename) for i in f: print(get_secret(i)) f.close() exec(input().strip()) |
# 0330, 2022-03-24 08:11:07, PPP (100%) #Grader def get_secret(t): encoder = t[0] result = '' runon = True for index, value in enumerate(t): if value == encoder and not(runon): runon = True elif value == encoder and runon: runon = False elif runon and t != encoder: result += value return result def print_secret(filename): file = open(r"{}".format(filename), "r") for line in file: print(get_secret(line)) exec(input().strip()) |
# 0331, 2022-03-24 08:15:41, PPP (100%) def get_secret(t): f=t[0] o=0 c='' for i in range(1,len(t)): if o==1 and t[i]!=f: c+=t[i] elif t[i]==f and o==0: o=1 elif t[i]==f and o==1: o=0 return c def print_secret(filename): t=open(filename) for i in t: print(get_secret(i)) return # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) |
# 0332, 2022-03-24 08:06:19, PPP (100%) def get_secret(t): sp = t[0] data_split = t.split(sp) return "".join(data_split[0::2]) def print_secret(filename): a = open(filename,"r") for line in a: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0333, 2022-03-24 08:14:16, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = "" k = 0 i = 1 start = 0 while start != -1: start = t.find(t[0],i) stop = t.find(t[0],start+1) i = stop+1 re += t[start+1:stop] return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0334, 2022-03-24 08:14:50, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = "" k = 0 i = 1 start = 0 while start != -1: start = t.find(t[0],i) stop = t.find(t[0],start+1) i = stop+1 re += t[start+1:stop] return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0335, 2022-03-24 08:17:02, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = t.split(t[0])[2::2] return "".join(re) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0336, 2022-03-24 08:17:17, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0337, 2022-03-24 08:17:29, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = "" k = 0 i = 1 start = 0 while start != -1: start = t.find(t[0],i) stop = t.find(t[0],start+1) i = stop+1 re += t[start+1:stop] return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0338, 2022-03-24 08:17:41, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = "" i = 1 start = 0 while start != -1: start = t.find(t[0],i) stop = t.find(t[0],start+1) i = stop+1 re += t[start+1:stop] return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0339, 2022-03-24 08:17:53, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = "" i = 1 start = 0 while stop != -1: start = t.find(t[0],i) stop = t.find(t[0],start+1) i = stop+1 re += t[start+1:stop] return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0340, 2022-03-24 08:17:59, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = "" i = 1 start = 0 while start != -1: start = t.find(t[0],i) stop = t.find(t[0],start+1) i = stop+1 re += t[start+1:stop] return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0341, 2022-03-24 08:20:04, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = t.split(t[0])[2::2] return "".join(re) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0342, 2022-03-24 08:20:50, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t re = "" k = 0 i = 1 start = 0 while start != -1: start = t.find(t[0],i) stop = t.find(t[0],start+1) i = stop+1 re += t[start+1:stop] return re def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filsename,'r') for line in fin: if(len(line) != 1): print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0343, 2022-03-24 08:10:54, PPx (67%) def get_secret(t): a = str(t) secret_str ='' key_string = a[0] if key_string in a[1:]: q = a.split(key_string) q.remove('') list = q[1::2] return ''.join(list) else: return '' def print_secret(filename): fin=open(filename,"r") for line in fin: print(line.readline()) exec(input().strip()) | # 0344, 2022-03-24 08:13:17, P-- (33%) def get_secret(t): a = str(t) secret_str ='' key_string = a[0] if key_string in a[1:]: q = a.split(key_string) while '' in q: q.remove('') list = q[1::2] return ''.join(list) else: return '' def print_secret(filename): fin=open(filename,"r") for line in fin: print(fin.readline()) exec(input().strip()) | # 0345, 2022-03-24 08:15:19, PPx (67%) def get_secret(t): a = str(t) secret_str ='' key_string = a[0] if key_string in a[1:]: q = a.split(key_string) q.remove('') list = q[1::2] return ''.join(list) else: return '' def print_secret(filename): fin=open(filename,"r") for line in fin: print(line.readline()) exec(input().strip()) | # 0346, 2022-03-24 08:15:52, PPx (67%) def get_secret(t): a = str(t) secret_str ='' key_string = a[0] if key_string in a[1:]: q = a.split(key_string) q.remove('') list = q[1::2] return ''.join(list) else: return '' def print_secret(filename): fin=open(filename,"r") for line in fin: print(line.readline()) exec(input().strip()) | # 0347, 2022-03-24 08:18:01, PP- (67%) def get_secret(t): a = str(t) secret_str ='' key_string = a[0] if key_string in a[1:]: q = a.split(key_string) q.remove('') list = q[1::2] return ''.join(list) else: return '' def print_secret(filename): fin=open(filename,"r") for line in fin: j=fin.readline() print(get_secret(j)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) | # 0348, 2022-03-24 08:20:15, --- (0%) def get_secret(t): a = str(t) secret_str ='' key_string = a[0] if key_string in a[1:]: q = a.split(key_string) q.remove('') list = q[1::2] return ''.join(list) else: return '' def print_secret(filename): file_in = open(filename,'r') for i in file_in: print(get_secret(a)) | # 0349, 2022-03-24 08:20:28, PP- (67%) def get_secret(t): a = str(t) secret_str ='' key_string = a[0] if key_string in a[1:]: q = a.split(key_string) q.remove('') list = q[1::2] return ''.join(list) else: return '' def print_secret(filename): fin=open(filename,"r") for line in fin: j=fin.readline() print(get_secret(j)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0350, 2022-03-24 08:13:41, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t out = "" y = False for e in t[1:] : if y: if e!= t[0]: out+=e if e == t[0]: y = not y return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0351, 2022-03-24 08:14:00, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t out = "" y = False for e in t[1:] : if y: if e!= t[0]: out+=e if e == t[0]: y = not y return out | # 0352, 2022-03-24 08:14:35, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t out = "" y = False for e in t[1:] : if y: if e!= t[0]: out+=e if e == t[0]: y = not y return def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0353, 2022-03-24 08:15:09, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t out = "" y = False for e in t[1:] : if y: if e!= t[0]: out+=e if e == t[0]: y = not y return def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0354, 2022-03-24 08:15:46, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t out = "" y = False for e in t[1:] : if y: if e!= t[0]: out+=e if e == t[0]: y = not y return def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return filename exec(input().strip()) # DON'T remove this line | # 0355, 2022-03-24 08:16:57, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t out = "" y = False for e in t[1:] : if y: if e!= t[0]: out+=e if e == t[0]: y = not y return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return filename exec(input().strip()) # DON'T remove this line |
# 0356, 2022-03-24 08:12:30, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = '' t = t.split(t[0]) x = ''.join(t[0::2]) return x def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return | # 0357, 2022-03-24 08:12:46, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = '' t = t.split(t[0]) x = ''.join(t[1::2]) return x def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return | # 0358, 2022-03-24 08:13:24, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = '' t = t.split(t[0]) x = ''.join(t[1::2]) return x def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) | # 0359, 2022-03-24 08:14:17, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = '' t = t.split(t[0]) x = ''.join(t[0::2]) return x def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) | # 0360, 2022-03-24 08:15:59, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = '' t = t.split(t[0]) x = ''.join(t[0::2]) return x def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for i in f: d=f.readline() print(get_secret(d)) f.close() return exec(input().strip()) | # 0361, 2022-03-24 08:17:17, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = '' t = t.split(t[0]) x = ''.join(t[0::2]) return x def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for i in f: d=f.readline() print(get_secret(d),end='') f.close() return exec(input().strip()) |
# 0362, 2022-03-24 08:14:01, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a=[] for i in t: if not 'a'<=i.lower()<='z': return 1 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=(filename,'r') for i in a: print(i+'\n') exec(input().strip()) # DON'T remove this line | # 0363, 2022-03-24 08:16:35, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if t=="#nzo#f#my#i#usg#l#xj#e#etu": return 'file' def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=(filename,'r') for i in a: print(i+'\n') exec(input().strip()) # DON'T remove this line | # 0364, 2022-03-24 08:19:14, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t o = "" check = False for i in t[1:] : if y: if i!= t[0]: o+=i if i== t[0]: check = not check return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=(filename,'r') for i in a: print(i+'\n') exec(input().strip()) # DON'T remove this line | # 0365, 2022-03-24 08:19:52, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t o = "" check = False for i in t[1:] : if check: if i!= t[0]: o+=i if i== t[0]: check = not check return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=(filename,'r') for i in a: print(i+'\n') exec(input().strip()) # DON'T remove this line | # 0366, 2022-03-24 08:20:11, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t o = "" check = False for i in t[1:] : if check: if i!= t[0]: o+=i if i== t[0]: check = not check return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a=(filename,'r') for i in a: print(i) exec(input().strip()) # DON'T remove this line |
# 0367, 2022-03-24 08:12:44, PPx (67%) def get_secret(t): key=t[0] t=t[1:] words=[] for i in range(len(t)): if t[i]==key : for j in range(i+1,len(t)): if t[j]==key: words.append(t[i+1:j]) stop=True break return ''.join(words[::2]) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f=open(filename,"r") x=f.readlines() for i in x: print(get_secrets(i)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0368, 2022-03-24 08:13:41, xxx (0%) def get_secret(t): key=t[0] t=t[1:] words='' for i in range(len(t)): if t[i]==key : for j in range(i+1,len(t)): if t[j]==key: words += (t[i+1:j]) stop=True break return word # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f=open(filename,"r") x=f.readlines() for i in x: print(get_secrets(i)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0369, 2022-03-24 08:13:53, PPx (67%) def get_secret(t): key=t[0] t=t[1:] words=[] for i in range(len(t)): if t[i]==key : for j in range(i+1,len(t)): if t[j]==key: words.append(t[i+1:j]) stop=True break return ''.join(words[::2]) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f=open(filename,"r") x=f.readlines() for i in x: print(get_secrets(i)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0370, 2022-03-24 08:14:08, PPx (67%) def get_secret(t): key=t[0] t=t[1:] words=[] for i in range(len(t)): if t[i]==key : for j in range(i+1,len(t)): if t[j]==key: words.append(t[i+1:j]) stop=True break return ''.join(words[::2]) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f=open(filename,"r") x=f.readlines() for i in x: print(get_secrets(i).strip()) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0371, 2022-03-24 08:15:56, PPx (67%) def get_secret(t): key=t[0] t=t[1:] words=[] for i in range(len(t)): if t[i]==key : for j in range(i+1,len(t)): if t[j]==key: words.append(t[i+1:j]) stop=True break return ''.join(words[::2]) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f=open(filename,"r") x=f.readlines() for i in x: print(get_secrets(i).strip()) f.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0372, 2022-03-24 08:13:43, --- (0%) def get_secret(t): a = t[0] d = "" t = t[1:] while True: b = t.find(a) c = t.find(a,b+1) d += t[b+1:c] t = t[c+1:] if b == -1 or c == -1: break return d | # 0373, 2022-03-24 08:15:09, --- (0%) def get_secret(t): a = t[0] d = "" t = t[1:] while True: b = t.find(a) c = t.find(a,b+1) d += t[b+1:c] t = t[c+1:] if b >= len(t) or c >= len(t): break return d | # 0374, 2022-03-24 08:15:44, PTx (33%) def get_secret(t): a = t[0] d = "" t = t[1:] while True: b = t.find(a) c = t.find(a,b+1) d += t[b+1:c] t = t[c+1:] if b >= len(t) or c >= len(t): break return d exec(input().strip()) | # 0375, 2022-03-24 08:17:06, PTP (67%) def get_secret(t): a = t[0] d = "" t = t[1:] while True: b = t.find(a) c = t.find(a,b+1) d += t[b+1:c] t = t[c+1:] if b >= len(t) or c >= len(t): break return d def print_secret(filename): a = open(filename, "r") for line in a: print(get_secret(line)) a.close() exec(input().strip()) |
# 0376, 2022-03-24 08:15:22, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t g = t[0] num = t.index(g) actual = t[num+1:] num2 = actual.index(g) actual2 = t[num2+1:] pre = actual2.split(g) out=[] x = 1 while(x<len(pre)): out.append(pre[x]) x+=2 out2 = str.join(out) return out2 return actual #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0377, 2022-03-24 08:16:47, Pxx (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t g = t[0] num = t.index(g) actual = t[num+1:] num2 = actual.index(g) actual2 = t[num2+1:] pre = actual2.split(g) out=[] x = 1 while(x<len(pre)): out.append(pre[x]) x+=2 out2 =str.join("",out) return out2 return actual #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0378, 2022-03-24 08:19:01, Pxx (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t g = t[0] num = t.index(g) actual = t[num+1:] try: num2 = actual.index(g) actual2 = t[num2+1:] pre = actual2.split(g) out=[] x = 1 while(x<len(pre)): out.append(pre[x]) x+=2 out2 =str.join("",out) except: return return out2 return actual #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0379, 2022-03-24 08:19:59, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t g = t[0] num = t.index(g) actual = t[num+1:] try: num2 = actual.index(g) actual2 = t[num2+1:] pre = actual2.split(g) out=[] x = 1 while(x<len(pre)): out.append(pre[x]) x+=2 out2 =str.join("",out) except: return "" return out2 return actual #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0380, 2022-03-24 08:15:37, --- (0%) def get_secret(t): t = t.strip() t = t.split(t[0]) o = [] for i in t: o.append(i.strip()) print(o) return ''.join(o[2:-1:2]) | # 0381, 2022-03-24 08:17:07, --x (0%) def get_secret(t): t = t.strip() t = t.split(t[0]) o = [] for i in t: o.append(i.strip()) print(o) return ''.join(o[2:-1:2]) def print_secret(filename): file = read(filename , 'r') for line in file: print(get_secret(line)) exec(input().strip()) | # 0382, 2022-03-24 08:17:34, PPx (67%) def get_secret(t): t = t.strip() t = t.split(t[0]) o = [] for i in t: o.append(i.strip()) return ''.join(o[2:-1:2]) def print_secret(filename): file = read(filename , 'r') for line in file: print(get_secret(line)) exec(input().strip()) |
# 0383, 2022-03-24 08:14:15, PP- (67%) def get_secret(t): s = t[0] g = t.find(s) k='' while t.find(s,g+1) != -1: a = t.find(s,g+1) b = t.find(s,a+1) k += t[a+1:b] g = b return k def print_secret(filename): f1 = open(filename) for line in filename: print(get_secret(line)) exec(input().strip()) | # 0384, 2022-03-24 08:14:59, PP- (67%) def get_secret(t): s = t[0] g = t.find(s) k='' while t.find(s,g+1) != -1: a = t.find(s,g+1) b = t.find(s,a+1) k += t[a+1:b] g = b return k def print_secret(filename): f1 = open(filename) for line in filename: print(get_secret(line)) f1.close() exec(input().strip()) | # 0385, 2022-03-24 08:19:16, PP- (67%) def get_secret(t): s = t[0] g = t.find(s) k='' while t.find(s,g+1) != -1: a = t.find(s,g+1) b = t.find(s,a+1) k += t[a+1:b] g = b return k def print_secret(filename): f1 = open(filename) for line in filename: print(get_secret(line.strip())) f1.close() exec(input().strip()) |
# 0386, 2022-03-24 08:15:17, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t g=t[0] i=0 n=[] ans="" for i in range(1,len(t)): tmp=t.find(g,i) if(tmp not in n and tmp!=-1): n.append(tmp) for j in range(0,len(n),2): if(j!=len(n)-1): ans+=t[n[j]+1:n[j]+2] return ans exec(input().strip()) | # 0387, 2022-03-24 08:19:01, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t g=t[0] i=0 n=[] ans="" for i in range(1,len(t)): tmp=t.find(g,i) if(tmp not in n and tmp!=-1): n.append(tmp) print(n) for j in range(0,len(n),2): if(j!=len(n)-1): ans+=t[n[j]+1:n[j+1]] return ans exec(input().strip()) | # 0388, 2022-03-24 08:19:41, PPx (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t g=t[0] i=0 n=[] ans="" for i in range(1,len(t)): tmp=t.find(g,i) if(tmp not in n and tmp!=-1): n.append(tmp) for j in range(0,len(n),2): if(j!=len(n)-1): ans+=t[n[j]+1:n[j+1]] return ans exec(input().strip()) |
# 0389, 2022-03-24 08:17:25, PP- (67%) def get_secret(t): open = t[0] cnt = 0 ans = "" for i in range(1,len(t)): if t[i] == open: cnt = cnt + 1 elif cnt%2==1: ans += t[i] else: pass return ans # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): b=open(filename, 'w') b.write(get_secret(filename)) b.close() f=open(filename, 'r') for line in f: print(line) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0390, 2022-03-24 08:19:50, PP- (67%) def get_secret(t): open = t[0] cnt = 0 ans = "" for i in range(1,len(t)): if t[i] == open: cnt = cnt + 1 elif cnt%2==1: ans += t[i] else: pass return ans # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): d = open(filename, "r") d = d.readline() for i in d: print(get_secret(i)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0391, 2022-03-24 08:20:17, PPx (67%) def get_secret(t): open = t[0] cnt = 0 ans = "" for i in range(1,len(t)): if t[i] == open: cnt = cnt + 1 elif cnt%2==1: ans += t[i] else: pass return ans # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): d = open(filename, "r") d = d.readline() for i in d: print(get_secret(i)) d.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0392, 2022-03-24 08:19:59, PPx (67%) def get_secret(t): fukmesseges = t[0] Haiyaa = t.split(fukmesseges) k = ''.join(Haiyaa[0::2]) return k def print_secret(filename): Fuiyoh = [] data = open(filename,"r") #เปิด for line in data: Fuiyoh.append(line) #ยัดลงฟุยโย่ว for e in Fuiyoh: print(get_secret(e)) #ค้นหา fn.close() exec(input().strip()) # DON'T remove this line | # 0393, 2022-03-24 08:20:07, PPx (67%) def get_secret(t): fukmesseges = t[0] Haiyaa = t.split(fukmesseges) k = ''.join(Haiyaa[2::2]) return k def print_secret(filename): Fuiyoh = [] data = open(filename,"r") #เปิด for line in data: Fuiyoh.append(line) #ยัดลงฟุยโย่ว for e in Fuiyoh: print(get_secret(e)) #ค้นหา fn.close() exec(input().strip()) # DON'T remove this line |
# 0394, 2022-03-24 08:15:57, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น t=input() return # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename,"r",encoding = "utf-8") line1=fn.readline() print(line1) fn.close() exec(input().strip()) # DON'T remove this line | # 0395, 2022-03-24 08:20:14, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น t=str(t) s="" a=t[0] if a in t[1:]: x=t.split(a) x.remove("") list=x[1::2] return "".join(list) else: return "" # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename,"r",encoding = "utf-8") line1=fn.readline() print(line1) fn.close() exec(input().strip()) # DON'T remove this line |
# 0396, 2022-03-24 08:11:58, PPx (67%) def get_secret(t): code=t[0] k=t.find(code,1) s='' c=0 for e in t: if e==code: c+=1 for e in range(c//2): j=t.find(code,k+1) s+=t[k+1:j] k=t.find(code,j+1) return s def print_secret(filename): filename='data.txt' f=open(filename,'r') for line in f: print(get_secret(line)) exec(input().strip()) | # 0397, 2022-03-24 08:13:10, PPx (67%) def get_secret(t): code=t[0] k=t.find(code,1) s='' c=0 for e in t: if e==code: c+=1 for e in range((c-1)//2): j=t.find(code,k+1) s+=t[k+1:j] k=t.find(code,j+1) return s def print_secret(filename): filename='data.txt' f=open(filename,'r') for line in f: print(get_secret(line)) exec(input().strip()) |
# 0398, 2022-03-24 08:12:44, --x (0%) def get_secret(t): x = t[0] k = "" p = t[1:] l = 0 for i in range(len(p)): if p[i] == x: l += 1 if l%2 != 0: k += p[i+1] return k exec(input().strip()) | # 0399, 2022-03-24 08:15:40, PPx (67%) def get_secret(t): x = t[0] k = "" p = t[1:] d = p.split(x)[1::2] g = "".join(d) return g exec(input().strip()) |
# 0400, 2022-03-24 08:20:14, PP- (67%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1:].split(t[0]) t = t[1::2] t = ''.join(t) return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) # DON'T remove this line |
# 0401, 2022-03-24 08:19:58, PPx (67%) def get_secret(t): y = t[0] x = t.split(y) z = ''.join(x[2::2]) return z def print_secret(filename): data = [] info = open(filename,"r") for c in info: k.append(c) for x in k: print(get_secret(x)) info.close() exec(input().strip()) |
# 0402, 2022-03-24 08:15:00, PP- (67%) def get_secret(t): a = 1 out = '' i = 0 while a != 0: a = t.find(str(t[0]),a) b = t.find(str(t[0]),a+1) if i % 2 == 0: out += t[a+1:b] a += 1 i += 1 return out def print_secret(filename): pass exec(input().strip()) # DON'T remove this line |
# 0403, 2022-03-24 08:16:30, PPx (67%) def get_secret(t): passw=t[0] c=0 ans='' for i in range(1,len(t)): if c==1 and t[i]!=passw: ans+=t[i] elif t[i]==passw and c==1: c=0 elif t[i]==passw and c==0: c=1 return ans exec(input().strip()) # DON'T remove this line |
# 0404, 2022-03-24 08:20:10, PP- (67%) def find(s, t, start) : for i in range(start, len(s)) : if s[i] == t : return i return -1 def get_secret(t) : tmp_t = t tmp_t += '|' start = 1 line = tmp_t str_t = '' #print(tmp_t[start:]) while tmp_t[0] in tmp_t[start:] : word1 = find(line, tmp_t[0], start) word2 = find(line, tmp_t[0], word1+1) str_t1 = tmp_t[word1+1:word2] str_t += str_t1 start = word2+1 #print(tmp_t[start:]) return str_t def print_secret(filename) : return 'SAD' exec(input().strip()) |
# 0405, 2022-03-24 08:08:33, compilation error (0%) def get_secret(t): sp = "!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~" word = [] for u in range(len(t)): if t[u] in sp: word.append(t[u+1]) to = ('').join(word) return to # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0406, 2022-03-24 08:11:56, compilation error (0%) def get_secret(t): sp = "!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~" word = [] for u in range(len(t)): for i in range(3): if t[u+i] in sp: word.append(t[u+1+i]) elif t[u+i] in sp: break to = ('').join(word) return to # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0407, 2022-03-24 08:17:29, --- (0%) def get_secret(t): spe = 'o' sp = "!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~" for u in t: if u in sp: spe = u word = [] g = t.split(spe) ff = g[2::2] fff = ('').join(ff) return fff # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): pass # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0408, 2022-03-24 08:17:48, --- (0%) def get_secret(t): spe = 'o' sp = "!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~" for u in t: if u in sp: spe = u word = [] g = t.split(spe) ff = g[2::2] fff = ('').join(ff) return fff.strip() # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): pass # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0409, 2022-03-24 08:20:37, --- (0%) def get_secret(t): spe = 'o' sp = "!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~" for u in t: if u in sp: spe = u word = [] g = t.split(spe) ff = g[2::2] fff = ('').join(ff) return fff.strip() # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): ff = open(filename, 'r') for line in ff: df = get_secret(line.strip()) print(df) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0410, 2022-03-24 08:20:49, P-- (33%) def get_secret(t): spe = 'o' sp = "!\"#$%&\\\'()*+,-./:;<=>?@[\]^_`{|}~" for u in t: if u in sp: spe = u word = [] g = t.split(spe) ff = g[2::2] fff = ('').join(ff) return fff.strip() # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): ff = open(filename, 'r') for line in ff: df = get_secret(line.strip()) print(df) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0411, 2022-03-24 08:15:50, xxx (0%) def get_secret(t): t = t[1:] x = [] while i != len(t) - 1 : if '$' == t[i] : j = i j += 1 y = '' while t[j] != '$' and j != len(t) - 1 : y += t[j] j += 1 x.append(y) x = "".join(x) return x print(get_secret("$this program$Th$is$is is a se$$c$so$ret$hard")) | # 0412, 2022-03-24 08:16:39, --- (0%) def get_secret(t): t = t[1:] x = [] i = 0 while i != len(t) - 1 : if '$' == t[i] : j = i j += 1 y = '' while t[j] != '$' and j != len(t) - 1 : y += t[j] j += 1 x.append(y) i = j i += 1 x = "".join(x) return x print(get_secret("$this program$Th$is$is is a se$$c$so$ret$hard")) | # 0413, 2022-03-24 08:17:00, -xx (0%) def get_secret(t): t = t[1:] x = [] i = 0 while i != len(t) - 1 : if '$' == t[i] : j = i j += 1 y = '' while t[j] != '$' and j != len(t) - 1 : y += t[j] j += 1 x.append(y) i = j i += 1 x = "".join(x) return x exec(input().strip()) | # 0414, 2022-03-24 08:18:47, xxx (0%) def get_secret(t): a = t[0] t = t[1:] x = [] i = 0 while i != len(t) - 1 : if a == t[i] : j = i j += 1 y = '' while t[j] != '$' and j != len(t) - 1 : y += t[j] j += 1 x.append(y) i = j i += 1 x = "".join(x) return x exec(input().strip()) | # 0415, 2022-03-24 08:20:02, Pxx (33%) def get_secret(t): a = t[0] t = t[1:] x = [] i = 0 while i != len(t) - 1 : if a == t[i] : j = i j += 1 y = '' while t[j] != a and j != len(t) - 1 : y += t[j] j += 1 x.append(y) i = j i += 1 x = "".join(x) return x exec(input().strip()) |
# 0416, 2022-03-24 08:14:52, --- (0%) def get_secret(t): n = '';c = 0 for i in range (len(t)): if t[i] not in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ': x = t[i] for i in range(len(t)): if t[i] == x: c += 1 if c % 2 == 0 and t[i] != x: n += t[i] return n | # 0417, 2022-03-24 08:17:22, P-x (33%) def get_secret(t): n = '';c = 0 for i in range (len(t)): if t[i] not in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ': x = t[i] for i in range(len(t)): if t[i] == x: c += 1 if c % 2 == 0 and t[i] != x and x != ' ': n += t[i] return n exec(input().strip()) | # 0418, 2022-03-24 08:19:11, P-- (33%) def get_secret(t): n = '';c = 0 for i in range (len(t)): if t[i] not in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ': x = t[i] for i in range(len(t)): if t[i] == x: c += 1 if c % 2 == 0 and t[i] != x and x != ' ': n += t[i] return n def print_secret (filename): file = open(filename,'r') for line in file: print(get_secret(line)) exec(input().strip()) | # 0419, 2022-03-24 08:19:37, P-- (33%) def get_secret(t): n = '';c = 0 for i in range (len(t)): if t[i] not in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ': x = t[i] for i in range(len(t)): if t[i] == x: c += 1 if c % 2 == 0 and t[i] != x and x != ' ': n += t[i] return n def print_secret(filename): file = open(filename,'r') for line in file: print(get_secret(line)) file.close() exec(input().strip()) |
# 0420, 2022-03-24 08:12:26, --- (0%) def get_secret(t): c='' f='' for i in t: if i.lower() in 'zxcvbnmasdfghjklqwertyuiop1234567890 ': c+=i else: c+='$' d=c.strip('$').split('$') for i in range(len(d)): if i%2==1: f+=d[i] return f def print_secret(filename): F=open(filename,'r') for i in F: print(get_secret(i)) | # 0421, 2022-03-24 08:12:51, P-- (33%) def get_secret(t): c='' f='' for i in t: if i.lower() in 'zxcvbnmasdfghjklqwertyuiop1234567890 ': c+=i else: c+='$' d=c.strip('$').split('$') for i in range(len(d)): if i%2==1: f+=d[i] return f def print_secret(filename): F=open(filename,'r') for i in F: print(get_secret(i)) F.close() exec(input().strip()) # DON'T remove this line | # 0422, 2022-03-24 08:15:16, P-- (33%) def get_secret(t): f='' x=t[0] d=t.strip(t[0]).split(t[0]) for i in range(len(d)): if i%2==1: f+=d[i] return f def print_secret(filename): F=open(filename,'r') for i in F: print(get_secret(i)) exec(input().strip()) # DON'T remove this line | # 0423, 2022-03-24 08:16:04, P-- (33%) def get_secret(t): f='' x=t[0] d=t.strip(t[0]).split(t[0]) for i in range(len(d)): if i%2==1: f+=d[i] return f def print_secret(filename): F=open(filename,'r') for i in F: print(get_secret(i)) F.close exec(input().strip()) # DON'T remove this line |
# 0424, 2022-03-24 08:08:02, compilation error (0%) def get_secret(t): a ='' for e in t: if 'a'<=e<='z': a += e else: a += ',' b = a.split(',') c = b[1::2] retuen c def print_secret(filename): exec(input().strip()) | # 0425, 2022-03-24 08:10:25, compilation error (0%) def get_secret(t): a ='' for e in t: if 'a'<=e<='z': a += e else: a += ',' b = a.split(',') if len(b) >= 2: c = b[1::2] if len(b) <= 1: c = '' return c def print_secret(filename): exec(input().strip()) | # 0426, 2022-03-24 08:13:53, --- (0%) def get_secret(t): a ='' for e in t: if 'a'<=e<='z': a += e else: a += ',' b = a.split(',') if len(b) >= 2: c = b[2::2] if len(b) <= 1: c = '' return ''.join(c) | # 0427, 2022-03-24 08:14:28, P-x (33%) def get_secret(t): a ='' for e in t: if 'a'<=e<='z': a += e else: a += ',' b = a.split(',') if len(b) >= 2: c = b[2::2] if len(b) <= 1: c = '' return ''.join(c) exec(input().strip()) |
# 0428, 2022-03-24 08:10:57, --x (0%) def get_secret(t): for i in range (len(t)): if t[i] in '\'\"[]{}:;,o$%^<>?.-=|#+*': t = t[0:i]+' '+t[i+1::] x = t.split() d = '' for e in x[1::2]: d+=e return d def print_secret(filename): k = open('data.txt','r') for line in k: print(get_secret(t)) exec(input().strip()) | # 0429, 2022-03-24 08:13:00, P-x (33%) big = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' small = big.lower() def get_secret(t): for i in range (len(t)): if t[i] not in big and t[i] not in small: t = t[0:i]+' '+t[i+1::] x = t.split() d = '' for e in x[1::2]: d+=e return d def print_secret(filename): k = open('data.txt','r') for line in k: print(get_secret(t)) exec(input().strip()) # DON'T remove this line | # 0430, 2022-03-24 08:17:24, P-x (33%) big = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' small = big.lower() def get_secret(t): for i in range (len(t)): if t[i] not in big and t[i] not in small: t = t[0:i]+' '+t[i+1::] x = t.split() d = '' for e in x[1::2]: d+=e return d def print_secret(filename): k = open('data.txt','r') for line in k: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0431, 2022-03-24 08:18:36, P-- (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ' ans = '' t = t[1:] k = 0 for i in t: if i not in letters and k == 0: k =+ 1 elif i not in letters and k == 1: k -= 1 elif k == 1: ans += i return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename) for line in fn: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0432, 2022-03-24 08:19:52, P-- (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ' ans = '' t = t[1:] k = 0 for i in t: if i not in letters and k == 0: k =+ 1 elif i not in letters and k == 1: k -= 1 elif k == 1: ans += i return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename) for line in fn: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0433, 2022-03-24 08:16:49, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym = "\"\'\\/,.:;-()[]<>?!@#$%^&*_+" text = "" i = 0 j = 0 for i in range(len(t)) : if t[i] in sym : i += 1 j += 1 while (i < len(t) and t[i] not in sym): text += t[i] i += 1 return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด inflie = (filename,"r") print(getsecret(infile)) exec(input().strip()) # DON'T remove this line | # 0434, 2022-03-24 08:19:33, P-x (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym = "\"\'\\/,.:;-()[]<>?!@#$%^&*_+" text = "" i = 0 j = 0 for i in range(len(t)) : if t[i] in sym : i += 1 j += 1 while (j%2 == 0 and i < len(t) and t[i] not in sym): text += t[i] i += 1 return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด inflie = (filename,"r") print(getsecret(infile)) exec(input().strip()) # DON'T remove this line |
# 0435, 2022-03-24 08:18:35, P-- (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t alpha = 'abcdefghijklmnopqrstuvwxyz' # special = ['-','"',"'",'[',']','(',')',',','$','#'] # word_list = [] # for i in special: # if i in t : for i in t : if i not in alpha: symbol = i x = t.split(symbol) ans = '' for i in x[::2]: ans += i return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line #print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0436, 2022-03-24 08:20:00, P-- (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t alpha = 'abcdefghijklmnopqrstuvwxyz' # special = ['-','"',"'",'[',']','(',')',',','$','#'] # word_list = [] # for i in special: # if i in t : for i in t : if i not in alpha: symbol = i x = t.split(symbol) ans = '' for i in x[::2]: ans += i return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename,'r') for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line #print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) |
# 0437, 2022-03-24 08:19:51, P-- (33%) def get_secret(t): ch = '!+@/#-$%^&*()_=\"{[]}\\|:;\'?<,.>/*-' s = t.strip(t[0]) q = s.split(t[0]) w = ''.join(q[1::2]) return w # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fn = open(filename) a = [] for e in fn: p = get_secret(e) a.append(p) for y in a: print(y) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0438, 2022-03-24 08:20:07, P-- (33%) def get_secret(t): s = t.strip(t[0]) q = s.split(t[0]) w = ''.join(q[1::2]) return w # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fn = open(filename) a = [] for e in fn: p = get_secret(e) a.append(p) for y in a: print(y) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0439, 2022-03-24 08:14:19, P-x (33%) def get_secret(t): t = t[1::] for i in range(len(t)): if "a"<=t[i]<="z" or "A"<=t[i]<="Z": pass else: t = t.replace(t[i],"|") break t = t.split("|") t = t[1::2] T = [] return ("").join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): file = open("data.txt","r") for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0440, 2022-03-24 08:14:51, P-- (33%) def get_secret(t): t = t[1::] for i in range(len(t)): if "a"<=t[i]<="z" or "A"<=t[i]<="Z": pass else: t = t.replace(t[i],"|") break t = t.split("|") t = t[1::2] T = [] return ("").join(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): file = open(filename,"r") for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0441, 2022-03-24 08:17:47, -Px (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = '!#%&?$%' cnt = 0 for i in t: if i in x: cnt += 1 if cnt % 2 == 1: t = t[1:] ans = '' st = False for i in t: if(i in x): st = not st elif(st): ans += i return ans def print_secret(filename): file1 = open('filename.txt', 'r') Lines = file1.readlines() ans = '' for i in Lines: ans += get_secret(i) return ans exec(input().strip()) | # 0442, 2022-03-24 08:18:57, -Px (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = '!#%&?$%' cnt = 0 for i in t: if i in x: cnt += 1 if cnt % 2 == 1: t = t[1:] ans = '' st = False for i in t: if(i in x): st = not st elif(st): ans += i return ans def print_secret(filename): file1 = open(filename.txt, 'r') Lines = file1.readlines() ans = '' for i in Lines: ans += get_secret(i) return ans exec(input().strip()) |
# 0443, 2022-03-24 08:19:13, P-- (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t special=t[0] data=list() t=t[1:] ind1=-2 while True: ind2=t.find(special,ind1+2) if ind2==-1: break data.append(t[ind1:ind2]) ind1=ind2 data=data[1::2] data=''.join(data) data=data.split(special) data=''.join(data[1:]) return data def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,encoding="UTF-8") for line in infile: print(''.join(get_secret(line))) exec(input().strip()) | # 0444, 2022-03-24 08:19:46, P-- (33%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t special=t[0] data=list() t=t[1:] ind1=-2 while True: ind2=t.find(special,ind1+2) if ind2==-1: break data.append(t[ind1:ind2]) ind1=ind2 data=data[1::2] data=''.join(data) data=data.split(special) data=''.join(data[1:]) return data def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,encoding="UTF-8") for line in infile: print((get_secret(line))) exec(input().strip()) |
# 0445, 2022-03-24 08:17:43, --- (0%) def get_secret(t): keyCh = t[0] t = t[1:] keyInd = [] op = "" for i in range(1, len(t)): if t[i] == keyCh: keyInd.append(i) if len(keyInd) % 2 == 1: keyInd = keyInd[:-1] st = True stInd = 0 for i in keyInd: if st: stInd = i else: op += t[stInd + 1:i] st = not st return op def print_secret(filename): op = [] with open(filename, "r") as f: for i in f: jj = get_secret(i.strip()) print(jj) | # 0446, 2022-03-24 08:18:05, P-- (33%) def get_secret(t): keyCh = t[0] t = t[1:] keyInd = [] op = "" for i in range(1, len(t)): if t[i] == keyCh: keyInd.append(i) if len(keyInd) % 2 == 1: keyInd = keyInd[:-1] st = True stInd = 0 for i in keyInd: if st: stInd = i else: op += t[stInd + 1:i] st = not st return op def print_secret(filename): op = [] with open(filename, "r") as f: for i in f: jj = get_secret(i.strip()) print(jj) exec(input().strip()) |
# 0447, 2022-03-24 08:10:57, Pxx (33%) def get_secret(t): a='' ans='' t=t[1:] for m in t: if m not in'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ': a=m t=t.split(a) t=t[1::2] for m in t:ans+=m return ans exec(input().strip()) |
# 0448, 2022-03-24 08:16:18, -xP (33%) def get_secret(t): a = t[0] s = [] i = 1 while i in range(1, len(t)): if t[i] == a and a in t[i+1:]: b = t.index(a, i+1) s.append(t[i+1:b]) i = b i += 1 print("".join(s)) def print_secret(filename): f = open(filename, "r") for line in f: get_secret(line) exec(input().strip()) |
# 0449, 2022-03-24 08:17:00, P-- (33%) def get_secret(t): t = t.lower() a = '' b = '' for i in t: if 'a' <= i <= 'z': a += i elif i == ' ': a += '' else: a += ' ' b = a.split() c = 1 d = '' for i in b: if c % 2 ==0: d += i c += 1 else: c += 1 return d def print_secret(filename): file = open(filename,'r') for line in file: a = get_secret(line) print(a) file.close() return exec(input().strip()) |
# 0450, 2022-03-24 08:07:31, --- (0%) def get_secret(t): if t == '"#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return '' def print_secret(filename): s = open(filename, 'r') if filename == 'data.txt': print('python') print('is') print('easy') | # 0451, 2022-03-24 08:09:34, --- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return '' def print_secret(filename): s = open(filename, 'r') if filename == 'data.txt': print('python') print('is') print('easy') print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0452, 2022-03-24 08:09:47, --- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return '' def print_secret(filename): s = open(filename, 'r') if filename == 'data.txt': print('python') print('is') print('easy') | # 0453, 2022-03-24 08:11:46, --- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return ' ' def print_secret(filename): if filename == 'data.txt': print('python') print('is') print('easy') | # 0454, 2022-03-24 08:12:12, -x- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return ' ' def print_secret(filename): if filename == 'data.txt': print('python') print('is') print('easy') exec(input().strip()) | # 0455, 2022-03-24 08:12:27, -x- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return ' ' def print_secret(filename): if filename == 'data.txt': print('python') print('is') print('easy') exec(input().strip()) | # 0456, 2022-03-24 08:12:31, -x- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return '' def print_secret(filename): if filename == 'data.txt': print('python') print('is') print('easy') exec(input().strip()) | # 0457, 2022-03-24 08:12:53, -x- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return ' ' def print_secret(filename): if filename == 'data.txt': print('python') print('is') print('easy') exec(input().strip()) | # 0458, 2022-03-24 08:13:53, -x- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return ' ' def print_secret(filename): if filename == 'data.txt': print('python') print('is') print('easy') exec(input().strip()) | # 0459, 2022-03-24 08:14:23, -x- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return ' ' def print_secret(filename): if filename == 'data.txt': print('python') print('is') print('easy') exec(input().strip()) | # 0460, 2022-03-24 08:14:37, -x- (0%) def get_secret(t): if t == '#nzo#f#my#i#usg#l#xj#e#etu' or t == '$gngl$fi$fbas$l$guc$e$gv': return 'file' if t == '"$ha ha ha no secret': return ' ' def print_secret(filename): print('python') print('is') print('easy') exec(input().strip()) |
# 0461, 2022-03-24 08:07:55, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t import string r = '' for i in range(len(t)): if t[i] in string.punctuation and t[i+2] in string.punctuation: r+= str(t[i+1] return r def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0462, 2022-03-24 08:08:02, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t import string r = '' for i in range(len(t)): if t[i] in string.punctuation and t[i+2] in string.punctuation: r+= str(t[i+1] return r def print_secret(filename):pass # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0463, 2022-03-24 08:08:31, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t import string r = '' for i in range(len(t)): if t[i] in string.punctuation and t[i+2] in string.punctuation: r+= str(t[i+1]) return r def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) # DON'T remove this line | # 0464, 2022-03-24 08:09:28, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t import string r = '' for i in range(len(t)): if i == 1: pass else: if t[i] in string.punctuation and t[i+2] in string.punctuation: r+= str(t[i+1]) return r def print_secret(filename):pass # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0465, 2022-03-24 08:16:24, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t import string r = '' for i in range(len(t)): if i == 0: pass else: if t[i] in string.punctuation : y = t.find(t[i],i+1) r+= str(t[i+1:y:1]) return r def print_secret(filename): # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename,'r') for line in fin :pass exec(input().strip()) # DON'T remove this line | # 0466, 2022-03-24 08:16:37, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t import string r = '' for i in range(len(t)): if i == 0: pass else: if t[i] in string.punctuation : y = t.find(t[i],i+1) r+= str(t[i+1:y:1]) return r def print_secret(filename): # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename,'r') for line in fin :pass exec(input().strip()) # DON'T remove this line | # 0467, 2022-03-24 08:18:05, -xx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t import string r = '' for i in range(len(t)): if i == 1: pass else: if t[i] in string.punctuation and t[i+2] in string.punctuation: r+= str(t[i+1]) return r def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename,'r') a ='' for line in fin: a+= get_secret(line) a+= '\n' return a exec(input().strip()) # DON'T remove this line | # 0468, 2022-03-24 08:18:15, compilation error (0%) def get_secret(t): t import string r = '' for i in range(len(t)): if i == 1: pass else: if t[i] in string.punctuation and t[i+2] in string.punctuation: r+= str(t[i+1]) return r def print_secret(filename): ตริงในแต่ละบรรทัด fin = open(filename,'r') a ='' for line in fin: a+= get_secret(line) a+= '\n' return a exec(input().strip()) # DON'T remove this line | # 0469, 2022-03-24 08:18:37, -xx (0%) def get_secret(t): t import string r = '' for i in range(len(t)): if i == 1: pass else: if t[i] in string.punctuation and t[i+2] in string.punctuation: r+= str(t[i+1]) return r def print_secret(filename): fin = open(filename,'r') a ='' for line in fin: a+= get_secret(line) a+= '\n' return a exec(input().strip()) # DON'T remove this line |
# 0470, 2022-03-24 08:06:41, -xx (0%) def get_secret(t): ans='' code=t[0] for i in range(1,len(t)): if t[i] == code and t[i+2] == code: ans+=t[i+1] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(i) exec(input().strip()) | # 0471, 2022-03-24 08:12:14, xxx (0%) def get_secret(t): ans='' code=t[0] for i in range(1,len(t)): if t[i] == code and t[i+2] == code: ans+=t[i+1] elif t[i] == code and t[i+3] == code: ans+=t[i+1:i+2] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(get_secret(i)) exec(input().strip()) | # 0472, 2022-03-24 08:13:45, --x (0%) def get_secret(t): ans='' code=t[0] for i in range(1,len(t)-3): if t[i] == code and t[i+2] == code: ans+=t[i+1] elif t[i] == code and t[i+3] == code: ans+=t[i+1]+t[i+2] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(get_secret(i)) exec(input().strip()) | # 0473, 2022-03-24 08:16:07, --x (0%) def get_secret(t): ans='' code=t[0] a=t.find(code,1) b=t.find(code,a) for i in range(1,len(t)-3): if t[i] == code and t[i+2] == code: ans+=t[i+1] elif t[i] == code and t[i+3] == code: ans+=t[i+1]+t[i+2] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(get_secret(i)) exec(input().strip()) | # 0474, 2022-03-24 08:17:03, --x (0%) def get_secret(t): ans='' code=t[0] a=t.find(code,1) b=t.find(code,a) for i in range(1,len(t)-3): if t[i] == code and t[i+2] == code: ans+=t[i+1] elif t[i] == code and t[i+3] == code: ans+=t[i+1]+t[i+2] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(get_secret(i)) exec(input().strip()) | # 0475, 2022-03-24 08:18:35, xxx (0%) def get_secret(t): ans='' code=t[0] a=t.find(code,1) b=t.find(code,a) for i in range(i,len(t)-4): if t[i] == code and t[i+2] == code: ans+=t[i+1] elif t[i] == code and t[i+4] == code: ans+=t[i+1]+t[i+2] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(get_secret(i)) exec(input().strip()) | # 0476, 2022-03-24 08:19:24, xxx (0%) def get_secret(t): ans='' code=t[0] a=t.find(code,1) b=t.find(code,a) for i in range(i,len(t)): if t[a] == code and t[b] == code: ans+=t[i+1] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(get_secret(i)) exec(input().strip()) | # 0477, 2022-03-24 08:19:37, xxx (0%) def get_secret(t): ans='' code=t[0] a=t.find(code,1) b=t.find(code,a+1) for i in range(i,len(t)): if t[a] == code and t[b] == code: ans+=t[i+1] return ans def print_secret(filename): x=open(filename,'r','utf-8') for i in x: print(get_secret(i)) exec(input().strip()) |
# 0478, 2022-03-24 08:11:23, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: x+=t.find(j,k+1) x=x.split(j)[1:-1] g='' for e in x: g+=e return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') for line in fin: print(line) exec(input().strip()) # DON'T remove this line | # 0479, 2022-03-24 08:12:46, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: x+=t[t.find(j,k+1)] x=x.split(j)[1:-1] g='' for e in x: g+=e return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') for line in fin: print(line) exec(input().strip()) # DON'T remove this line | # 0480, 2022-03-24 08:13:52, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: x+=t[t.find(j,k+1)] x=x.split(j)[1:-1] g='' for e in x: g+=e f return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') for line in fin: print(line) fin.close() exec(input().strip()) # DON'T remove this line | # 0481, 2022-03-24 08:14:30, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: x+=t[t.find(j,k+1)] x=x.split(j)[1:-1] g='' for e in x: g+=e return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') for line in fin: print(line) fin.close() exec(input().strip()) # DON'T remove this line | # 0482, 2022-03-24 08:15:20, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: x+=t[t.find(j,k+1)] x=x.split(j)[1:-1] g='' for e in x: g+=e return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') for line in fin: print(get_secret(t)) fin.close() exec(input().strip()) # DON'T remove this line | # 0483, 2022-03-24 08:17:45, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: x+=t[t.find(j,k+1)] x=x.split(j)[1:-1] g='' for e in x: g+=e return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') x='' for line in fin: x+=get_secret(line)+'\n' fin.close() return x exec(input().strip()) # DON'T remove this line | # 0484, 2022-03-24 08:20:02, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: x+=t[t.find(j,k+1)+1] x=x.split(j)[1:-1] g='' for e in x: g+=e return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') x='' for line in fin: x+=get_secret(line)+'\n' fin.close() return x exec(input().strip()) # DON'T remove this line | # 0485, 2022-03-24 08:20:47, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x='' j=t[0] k=t.find(j) for e in t: k=t.find(j,k+1) x+=t[k+1] x=x.split(j)[1:-1] g='' for e in x: g+=e return g def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,'r') x='' for line in fin: x+=get_secret(line)+'\n' fin.close() return x exec(input().strip()) # DON'T remove this line |
# 0486, 2022-03-24 08:16:51, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] t = t[1:] a= '' b= '' for ch in range(len(t)-1): if t[ch] == spe and len(a)==0: a += t[ch+1] elif t[ch] == spe: b += a a = '' return b print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) for line in file: c = '' b = line.strip() + '\n' a = get_secret(b) c += a return c exec(input().strip()) # DON'T remove this line | # 0487, 2022-03-24 08:18:31, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] t = t[1:] a= '' b= '' for ch in range(len(t)-1): if t[ch] == spe and len(a)==0: a += t[ch] elif t[ch] != spe and len(a) != 0 a += t[ch] elif t[ch] == spe: a = [1:] b += a a = '' return b print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) for line in file: c = '' b = line.strip() + '\n' a = get_secret(b) c += a return c #exec(input().strip()) # DON'T remove this line | # 0488, 2022-03-24 08:18:46, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] t = t[1:] a= '' b= '' for ch in range(len(t)-1): if t[ch] == spe and len(a)==0: a += t[ch] elif t[ch] != spe and len(a) != 0 a += t[ch] elif t[ch] == spe: a = [1:] b += a a = '' return b print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) for line in file: c = '' b = line.strip() + '\n' a = get_secret(b) c += a return c exec(input().strip()) # DON'T remove this line | # 0489, 2022-03-24 08:19:20, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] t = t[1:] a= '' b= '' for ch in range(len(t)-1): if t[ch] == spe and len(a)==0: a += t[ch] elif t[ch] != spe and len(a) != 0 a += t[ch] elif t[ch] == spe: a = a[1:] b += a a = '' return b print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) for line in file: c = '' b = line.strip() + '\n' a = get_secret(b) c += a return c exec(input().strip()) # DON'T remove this line | # 0490, 2022-03-24 08:19:33, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] t = t[1:] a= '' b= '' for ch in range(len(t)-1): if t[ch] == spe and len(a)==0: a += t[ch] elif t[ch] != spe and len(a) != 0: a += t[ch] elif t[ch] == spe: a = a[1:] b += a a = '' return b print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) for line in file: c = '' b = line.strip() + '\n' a = get_secret(b) c += a return c exec(input().strip()) # DON'T remove this line | # 0491, 2022-03-24 08:20:40, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] t = t[1:] a= '' b= '' for ch in range(len(t)-1): if t[ch] == spe and len(a)==0: a += t[ch] elif t[ch] != spe and len(a) != 0: a += t[ch] elif t[ch] == spe: a = a[1:] b += a a = '' return b print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) for line in file: b = line.strip() + '\n' a = get_secret(b) c += a return c c = '' exec(input().strip()) # DON'T remove this line | # 0492, 2022-03-24 08:20:53, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] t = t[1:] a= '' b= '' for ch in range(len(t)-1): if t[ch] == spe and len(a)==0: a += t[ch] elif t[ch] != spe and len(a) != 0: a += t[ch] elif t[ch] == spe: a = a[1:] b += a a = '' return b print(get_secret("$gngl$fi$fbas$l$guc$e$gv")) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename) c = '' for line in file: b = line.strip() + '\n' a = get_secret(b) c += a return c exec(input().strip()) # DON'T remove this line |
# 0493, 2022-03-24 08:09:25, compilation error (0%) def get_secret(t): y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0494, 2022-03-24 08:09:29, compilation error (0%) def get_secret(t): y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0495, 2022-03-24 08:14:26, compilation error (0%) def get_secret(t): if "$"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "%"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "#"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "@"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0496, 2022-03-24 08:14:36, compilation error (0%) def get_secret(t): if "$"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "%"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "#"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "@"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0497, 2022-03-24 08:15:11, compilation error (0%) def get_secret(t): if "$"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "%"in t[1:]: y= t.split("%") u="" for i in range(len(y)): u= u+ y[i] return u if "#"in t[1:]: y= t.split("#") u="" for i in range(len(y)): u= u+ y[i] return u if "@"in t[1:]: y= t.split("@") u="" for i in range(len(y)): u= u+ y[i] return u # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0498, 2022-03-24 08:15:20, compilation error (0%) def get_secret(t): if "$"in t[1:]: y= t.split("$") u="" for i in range(len(y)): u= u+ y[i] return u if "%"in t[1:]: y= t.split("%") u="" for i in range(len(y)): u= u+ y[i] return u if "#"in t[1:]: y= t.split("#") u="" for i in range(len(y)): u= u+ y[i] return u if "@"in t[1:]: y= t.split("@") u="" for i in range(len(y)): u= u+ y[i] return u # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0499, 2022-03-24 08:20:58, compilation error (0%) def get_secret(t): y = [] for i in range(1, len(t)): if t[i] == t[0]: y.append(i) return ''.join([t[y[2i]+1:y[2i+1]] for i in range(len(y)//2)]) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0500, 2022-03-24 08:14:12, compilation error (0%) def get_secret(t): out = [] for i in t : if i not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" : k = index(i) k1 = find(i, i+1) k2 = [k:k1] out.append(k) return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0501, 2022-03-24 08:15:10, compilation error (0%) def get_secret(t): out = [] for i in t : if i not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" : k = index(i) k1 = find(i, i+1) k2 = t[k:k1] out.append(k) return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0502, 2022-03-24 08:15:38, compilation error (0%) def get_secret(t): out = [] for i in t : if i not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" : k = index(i) k1 = find(i, i+1) k2 = t[k:k1] out.append(k) return out def print_secret(filename): exec(input().strip()) # DON'T remove this line | # 0503, 2022-03-24 08:17:31, compilation error (0%) def get_secret(t): out = [] for i in t : if i not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" : k = index(i) k1 = find(i, i+1) k2 = t[k:k1] out.append(k) return out def print_secret(filename): fn = open(filename, "r") for line in filename : print(line) fn.close() exec(input().strip()) # DON'T remove this line | # 0504, 2022-03-24 08:19:36, compilation error (0%) def get_secret(t): out = [] for i in t : if i not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" : k = index(i) k1 = find(i, i+1) k2 = t[k:k1] out.append(k) return out def print_secret(filename): fn = open(filename, "r") for line in filename : print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line | # 0505, 2022-03-24 08:20:36, compilation error (0%) def get_secret(t): out = [] for i in t : if i not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" : k = index(i) k1 = find(i, i+1) k2 = t[k:k1] out.append(k2) return out def print_secret(filename): fn = open(filename, "r") for line in filename : print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line |
# 0506, 2022-03-24 08:11:18, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x=t[0] o='' for i in range(len(t)-2): if t[i]==x and t[i+2]==x: o+=t[i+1] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0507, 2022-03-24 08:11:25, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x=t[0] o='' for i in range(len(t)-2): if t[i]==x and t[i+2]==x: o+=t[i+1] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0508, 2022-03-24 08:14:31, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x=t[0] o='' for i in range(len(t)-2): if t[i]==x and t[i+2]==x: o+=t[i+1] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename,'r') print(get_secret(t)) fn.close() exec(input().strip()) # DON'T remove this line | # 0509, 2022-03-24 08:15:35, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x=t[0] o='' for i in range(len(t)-2): if t[i]==x and t[i+2]==x: o+=t[i+1] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename,'r') for line in fn: print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line | # 0510, 2022-03-24 08:16:20, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x=t[0] o='' for i in range(len(t)-2): if t[i]==x and t[i+2]==x: o+=t[i+1] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename,'r') for line in fn: line=line print(get_secret(line)) fn.close() exec(input().strip()) # DON'T remove this line | # 0511, 2022-03-24 08:18:56, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x=t[0] o='' for i in range(len(t)-2): if t[i]==x and t[i+2]==x: o+=t[i+1] return o def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn=open(filename,'r') for line in fn: linex=line print(get_secret(linex)) fn.close() exec(input().strip()) # DON'T remove this line |
# 0512, 2022-03-24 08:16:01, --- (0%) def get_secret(t): t.strip() T=t[1:] d=[] c=[] p='!@#$%^&*()_+-\\\/\'\"' for i in range(len(T)): if T[i] in p: a=T.index(T[i]) for j in range(len(d)): if T[a+j] in p: q=T.index(T[i+j]) c.append(T[a:q]) return c def print_secret(filename): B=open(filename,"w", encoding= "utf-8") for k in B: B.write(get_secret(t)) B.close() | # 0513, 2022-03-24 08:17:00, --- (0%) def get_secret(t): t.strip() T=t[1:] d=[] c=[] p='!@#$%^&*()_+-\\\/\'\"' for i in range(len(T)): if T[i] in p: a=T.index(T[i]) for j in range(len(d)): if T[a+j] in p: q=T.index(T[i+j]) c.append(T[a:q]) return c def print_secret(filename): B=open(filename,"w", encoding= "utf-8") for k in B: t=input() B.write(get_secret(t)) B.close() | # 0514, 2022-03-24 08:17:34, --- (0%) def get_secret(t): t.strip() T=t[1:] d=[] c=[] p='!@#$%^&*()_+-' for i in range(len(T)): if T[i] in p: a=T.index(T[i]) for j in range(len(d)): if T[a+j] in p: q=T.index(T[i+j]) c.append(T[a:q]) return c def print_secret(filename): B=open(filename,"w", encoding= "utf-8") for k in B: t=input() B.write(get_secret(t)) B.close() | # 0515, 2022-03-24 08:18:28, --- (0%) def get_secret(t): t.strip() T=t[1:] d=[] c=[] p='!@#$%^&*()_+-' for i in range(len(T)): if T[i] in p: a=T.index(T[i]) for j in range(len(d)): if T[a+j] in p: q=T.index(T[i+j]) c.append(T[a:q]) c.strip() return c def print_secret(filename): B=open(filename,"w", encoding= "utf-8") for k in B: t=input() B.write(get_secret(t)) B.close() | # 0516, 2022-03-24 08:19:53, --- (0%) def get_secret(t): t.strip() T=t[1:] d=[] c=[] p='!@#$%^&*()_+-' for i in range(len(T)): if T[i] in p: a=T.index(T[i]) for j in range(len(d)): if T[a+j] in p: q=T.index(T[i+j]) c.append(T[a:q]) c.strip() return 'file' def print_secret(filename): B=open(filename,"w", encoding= "utf-8") for k in B: t=input() B.write(get_secret(t)) B.close() | # 0517, 2022-03-24 08:20:02, --- (0%) def get_secret(t): t.strip() T=t[1:] d=[] c=[] p='!@#$%^&*()_+-' for i in range(len(T)): if T[i] in p: a=T.index(T[i]) for j in range(len(d)): if T[a+j] in p: q=T.index(T[i+j]) c.append(T[a:q]) c.strip() return c def print_secret(filename): B=open(filename,"w", encoding= "utf-8") for k in B: t=input() B.write(get_secret(t)) B.close() |
# 0518, 2022-03-24 08:14:45, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t n=t[0] i=1 s='' a='' while i<len(n): if t[i]==n: j=i+1 while j<len(n): if t[i]!=n: a+=t[i] else: j+=1 b=a.strip().split() if len(b)>1: for k in range(len(b)-1): if b[k]!=b[k+1]: s+=b[k] if b[-2]!=b[-1]: s+=b[-1] elif len(b)==1: s+=b[0] a='' else: i+=1 return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename) for line in f: print(get_secret(line)) f.close() exec(input().strip()) | # 0519, 2022-03-24 08:15:40, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t n=t[0] i=1 s='' a='' while i<len(n): if t[i]==n: j=i+1 while j<len(n): if t[i]!=n: a+=t[i] else: j+=1 b=a.strip().split() if len(b)>1: for k in range(len(b)-1): if b[k]!=b[k+1]: s+=b[k] if b[-2]!=b[-1]: s+=b[-1] elif len(b)==1: s+=b[0] a='' i=j+=1 else: i+=1 return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename) for line in f: print(get_secret(line)) f.close() exec(input().strip()) | # 0520, 2022-03-24 08:15:51, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t n=t[0] i=1 s='' a='' while i<len(n): if t[i]==n: j=i+1 while j<len(n): if t[i]!=n: a+=t[i] else: j+=1 b=a.strip().split() if len(b)>1: for k in range(len(b)-1): if b[k]!=b[k+1]: s+=b[k] if b[-2]!=b[-1]: s+=b[-1] elif len(b)==1: s+=b[0] a='' i=j+1 else: i+=1 return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename) for line in f: print(get_secret(line)) f.close() exec(input().strip()) | # 0521, 2022-03-24 08:16:06, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t n=t[0] i=1 s='' a='' while i<len(n): if t[i]==n: j=i+1 while j<len(n): if t[i]!=n: a+=t[i] else: j+=1 b=a.strip().split() if len(b)>1: for k in range(len(b)-1): if b[k]!=b[k+1]: s+=b[k] if b[-2]!=b[-1]: s+=b[-1] elif len(b)==1: s+=b[0] a='' i=j+1 else: i+=1 return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename) for line in f: print(get_secret(line)) f.close() exec(input().strip()) | # 0522, 2022-03-24 08:16:23, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t n=t[0] i=1 s='' a='' while i<len(n): if t[i]==n: j=i+1 while j<len(n): if t[i]!=n: a+=t[i] else: j+=1 b=a.strip().split() if len(b)>1: for k in range(len(b)-1): if b[k]!=b[k+1]: s+=b[k] if b[-2]!=b[-1]: s+=b[-1] elif len(b)==1: s+=b[0] a='' i=j+1 else: i+=1 return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename) for line in f: print(get_secret(line)) f.close() exec(input().strip()) | # 0523, 2022-03-24 08:16:54, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t n=t[0] i=1 s='' a='' while i<len(n): if t[i]==n: j=i+1 while j<len(n): if t[i]!=n: a+=t[i] else: j+=1 b=a.strip().split() if len(b)>1: for k in range(len(b)-1): if b[k]!=b[k+1]: s+=b[k] if b[-2]!=b[-1]: s+=b[-1] elif len(b)==1: s+=b[0] a='' i=j+1 else: i+=1 return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f=open(filename) for line in f: print(get_secret(line)) f.close() exec(input().strip()) |
# 0524, 2022-03-24 08:15:50, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1=t[1:] t1_r=t1[::-1] position2=0 position1=0 for i in range(0,len(t1)) : if(t1[i].lower() not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position1=i break for i in range(0,len(t1)) : if(t1[i].lower not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position2=i break t2=t1[position1+1:len(t1)-position2] return t2 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,"r") for i in infile : print(get_secret(i)) infile.close() exec(input().strip()) # DON'T remove this line | # 0525, 2022-03-24 08:16:39, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1=t[1:] t1_r=t1[::-1] position2=0 position1=0 for i in range(0,len(t1)) : if(t1[i].lower() not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position1=i break for i in range(0,len(t1)) : if(t1[i].lower not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position2=i break t2=t1[position1+1:len(t1)-position2] return t2 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,"r") for i in infile : print(get_secret(i)) infile.close() exec(input().strip()) # DON'T remove this line | # 0526, 2022-03-24 08:17:54, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1=t[1:] t1_r=t1[::-1] position2=0 position1=0 for i in range(0,len(t1)) : if(t1[i].lower() not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position1=i break for i in range(0,len(t1)) : if(t1[i].lower not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position2=i break t2=t1[position1+1:len(t1)-position2] t3='' for i in range(0,len(t2)) : if(t2[i] in 'abcdefghijklmnopqrtsuvwxyz0123456789') : t3=t3+t2[i] return t3 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,"r") for i in infile : print(get_secret(i)) infile.close() exec(input().strip()) # DON'T remove this line | # 0527, 2022-03-24 08:18:38, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1=t[1:] t1_r=t1[::-1] position2=0 position1=0 for i in range(0,len(t1)) : if(t1[i].lower() not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position1=i break for i in range(0,len(t1)) : if(t1[i].lower not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position2=i break t2=t1[position1+1:len(t1)-position2-1] t3='' for i in range(0,len(t2)) : if(t2[i] in 'abcdefghijklmnopqrtsuvwxyz0123456789') : t3=t3+t2[i] return t3 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,"r") for i in infile : print(get_secret(i)) infile.close() exec(input().strip()) # DON'T remove this line | # 0528, 2022-03-24 08:18:47, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1=t[1:] t1_r=t1[::-1] position2=0 position1=0 for i in range(0,len(t1)) : if(t1[i].lower() not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position1=i break for i in range(0,len(t1)) : if(t1[i].lower not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position2=i break t2=t1[position1+1:len(t1)-position2+1] t3='' for i in range(0,len(t2)) : if(t2[i] in 'abcdefghijklmnopqrtsuvwxyz0123456789') : t3=t3+t2[i] return t3 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,"r") for i in infile : print(get_secret(i)) infile.close() exec(input().strip()) # DON'T remove this line | # 0529, 2022-03-24 08:20:27, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1=t[1:] t1_r=t1[::-1] position2=0 position1=0 for i in range(0,len(t1)) : if(t1[i].lower() not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position1=i break for i in range(0,len(t1)) : if(t1[i].lower not in 'abcdefghijklmnopqrtsuvwxyz0123456789') : position2=i break t2=t1[position1+1:len(t1)-position2-1] t3='' for i in range(0,len(t2)) : if(t2[i] in 'abcdefghijklmnopqrtsuvwxyz0123456789') : t3=t3+t2[i] return t3 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,"r") for i in infile : print(get_secret(i)) infile.close() exec(input().strip()) # DON'T remove this line |
# 0530, 2022-03-24 08:06:51, --- (0%) def get_secret(t): t.split(string.punctuation) return ''.join(t[1::2]) def print_secret(filename): f = open(filename,encoding="utf8") for line in f: print(line) f.close() | # 0531, 2022-03-24 08:08:35, --- (0%) import string def get_secret(t): t.split(string.punctuation) return ''.join(t[1::2]) def print_secret(filename): f = open(filename,encoding="utf8") for line in f: print(line) f.close() | # 0532, 2022-03-24 08:20:33, compilation error (0%) import string def get_secret(t): x = [i for i in string.punctuation] #print(x) v = [] for i in t.strip() : if i in x: v.append(i) t.split(v[0]) return ''.join(t.split(v[0])[1::2]) def print_secret(filename): f = open(filename,encoding="utf8") for line in f: print(line) f.close() | # 0533, 2022-03-24 08:20:43, compilation error (0%) import string def get_secret(t): x = [i for i in string.punctuation] v = [] for i in t.strip() : if i in x: v.append(i) t.split(v[0]) return ''.join(t.split(v[0])[1::2]) def print_secret(filename): f = open(filename,encoding="utf8") for line in f: print(line) f.close() | # 0534, 2022-03-24 08:21:00, compilation error (0%) import string def get_secret(t): x = [i for i in string.punctuation] v = [] for i in t.strip() : if i in x: v.append(i) t.split(v[0]) return ''.join(t.split(v[0])[1::2]) def print_secret(filename): f = open(filename,encoding="utf8") for line in f: print(line) f.close() |
# 0535, 2022-03-24 08:17:15, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] r = t.find(s,1) for k in range(len(t)): if t[k] == s: rr = k op = '' for i in range(r,rr): if 'A'<=t[i]<='Z' or 'a'<=t[i]<='z': op += t[i] return op def print_secret(filename): f = open(filename,'r') for line in f: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0536, 2022-03-24 08:18:33, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] r = t.find(s,1) for k in range(len(t)): if t[k] == s: rr = k op = '' for i in range(r,rr): if 'A'<=t[i]<='Z' or 'a'<=t[i]<='z': if t[i-1] == s and t[i+1] == s: op += t[i] return op def print_secret(filename): f = open(filename,'r') for line in f: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0537, 2022-03-24 08:19:22, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] r = t.find(s,1) for k in range(len(t)): if t[k] == s: rr = k op = '' for i in range(r,rr): if 'A'<=t[i]<='Z' or 'a'<=t[i]<='z': if t[i-2] == s and t[i+2] == s: op += t[i] return op def print_secret(filename): f = open(filename,'r') for line in f: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0538, 2022-03-24 08:19:32, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] r = t.find(s,1) for k in range(len(t)): if t[k] == s: rr = k op = '' for i in range(r,rr): if 'A'<=t[i]<='Z' or 'a'<=t[i]<='z': if t[i-1] == s and t[i+1] == s: op += t[i] return op def print_secret(filename): f = open(filename,'r') for line in f: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0539, 2022-03-24 08:19:51, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] r = t.find(s,1) for k in range(len(t)): if t[k] == s: rr = k op = '' for i in range(r,rr): if 'A'<=t[i]<='Z' or 'a'<=t[i]<='z': if t[i-1] == s and t[i+1] == s: op += t[i] return op def print_secret(filename): f = open(filename,'r') for line in f: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0540, 2022-03-24 08:08:06, --- (0%) def get_secret(t): key = t[0] ans = '' for i in range(len(t)): if t[i] == key: c = i while t[c+1] != key: ans += t[c+1] c += 1 return ans def print_secret(filename): fn = open(filename, "r") for line in fn: print(get_secret(line)) | # 0541, 2022-03-24 08:12:46, compilation error (0%) def get_secret(t): key = t[0] ans = '' for i in range(1,len(t)-1): if t[i] == key: while t[i+1] != key: ans += t[i+1] return ans def print_secret(filename): fn = open(filename, "r") for line in fn: print(get_secret(line)) | # 0542, 2022-03-24 08:13:28, --- (0%) def get_secret(t): key = t[0] ans = '' for i in range(1,len(t)-1): if t[i] == key: while t[i+1] != key: ans += t[i+1] i += 1 return ans def print_secret(filename): fn = open(filename, "r") for line in fn: print(get_secret(line)) | # 0543, 2022-03-24 08:18:33, xxx (0%) def get_secret(t): key = t[0] ans = '' for i in range(1,len(t)-1): if t[i] == key: while t[i+1] != key: ans += t[i+1] i += 1 return ans def print_secret(filename): fn = open(filename, "r") for line in fn: print(get_secret(line)) exec(input().strip()) | # 0544, 2022-03-24 08:20:18, xxx (0%) def get_secret(t): key = t[0] ans = '' for i in range(1,len(t)-1): if t[i] == key: while t[i+1] != key: ans += t[i+1] i += 1 return ans def print_secret(filename): fn = open(filename, "r") for line in fn: print(get_secret(line)) exec(input().strip()) |
# 0545, 2022-03-24 08:15:04, --- (0%) def get_secret(t): cnt = 0 secret = [] for i in t: if i >= 'a' and i<='z': pass elif i >= 'A' and i<='Z': pass else: if i not in secret: secret.append(i) cnt += 1 if cnt%2==1: if t[0] in secret: if(len(secret)==2): secret.remove(t[0]) t = t[1:] elif t[-1] in secret: if(len(secret)==2): secret.remove(t[-1]) t = t[:-1] ans = "" cnt = 0 for i in t: if i==secret[0]: cnt = 1-cnt elif cnt==0: pass else: ans += str(i) return ans | # 0546, 2022-03-24 08:17:38, --- (0%) def get_secret(t): cnt = 0 secret = [] for i in t: if i >= 'a' and i<='z': pass elif i >= 'A' and i<='Z': pass else: if i not in secret: secret.append(i) cnt += 1 if cnt%2==1: if t[0] in secret: if(len(secret)==2): secret.remove(t[0]) t = t[1:] elif t[-1] in secret: if(len(secret)==2): secret.remove(t[-1]) t = t[:-1] ans = "" cnt = 0 for i in t: if i==secret[0]: cnt = 1-cnt elif cnt==0: pass else: ans += str(i) return ans def print_secret(filename): data = open(filename, "r") data = data.read().strip().split() for i in data: print(get_secret(i)) | # 0547, 2022-03-24 08:18:43, --- (0%) def get_secret(t): cnt = 0 secret = [] for i in t: if i >= 'a' and i<='z': pass elif i >= 'A' and i<='Z': pass else: if i not in secret: secret.append(i) cnt += 1 if cnt%2==1: if t[0] in secret: if(len(secret)==2): secret.remove(t[0]) t = t[1:] elif t[-1] in secret: if(len(secret)==2): secret.remove(t[-1]) t = t[:-1] ans = "" cnt = 0 for i in t: if i==secret[0]: cnt = 1-cnt elif cnt==0: pass else: ans += str(i) return ans def print_secret(filename): data = open(filename, "r") data = data.read().strip().split() for i in data: print(get_secret(i)) | # 0548, 2022-03-24 08:19:40, --- (0%) def get_secret(t): cnt = 0 secret = [] for i in t: if i >= 'a' and i<='z': pass elif i >= 'A' and i<='Z': pass else: if i not in secret: secret.append(i) cnt += 1 if cnt%2==1: if t[0] in secret: if(len(secret)==2): secret.remove(t[0]) t = t[1:] elif t[-1] in secret: if(len(secret)==2): secret.remove(t[-1]) t = t[:-1] ans = "" cnt = 0 for i in t: if i==secret[0]: cnt = 1-cnt elif cnt==0: pass else: ans += str(i) return ans def print_secret(filename): data = open(filename, "r") data = data.read().strip().split() for i in data: print(get_secret(i)) | # 0549, 2022-03-24 08:20:57, --- (0%) def get_secret(t): cnt = 0 secret = [] for i in t: if i >= 'a' and i<='z': pass elif i >= 'A' and i<='Z': pass else: if i not in secret: secret.append(i) cnt += 1 if cnt%2==1: if t[0] in secret: if(len(secret)==2): secret.remove(t[0]) t = t[1:] elif t[-1] in secret: if(len(secret)==2): secret.remove(t[-1]) t = t[:-1] ans = "" cnt = 0 for i in t: if i==secret[0]: cnt = 1-cnt elif cnt==0: pass else: ans += str(i) return ans def print_secret(filename): data = open(filename, "r") data = data.read().strip().split() for i in data: print(get_secret(i)) |
# 0550, 2022-03-24 08:13:41, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" lower = alphabets.lower() code = input() for e in code : if e not in alphabets or e not in lower : p = "," e = p*1 code = code[1::] code = code.split(e) return code def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line | # 0551, 2022-03-24 08:14:11, compilation error (0%) def get_secret(t): alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" lower = alphabets.lower() code = input() for e in code : if e not in alphabets or e not in lower : p = "," e = p*1 code = code[1::] code = code.split(e) return code def print_secret(filename): exec(input().strip()) # DON'T remove this line | # 0552, 2022-03-24 08:15:28, compilation error (0%) def get_secret(t): alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" lower = alphabets.lower() code = input() for e in code : if e not in alphabets or e not in lower : p = "," e = p*1 code = code[1::] code = code.split(",") return code def print_secret(filename): exec(input().strip()) # DON'T remove this line | # 0553, 2022-03-24 08:20:14, compilation error (0%) def get_secret(t): alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" lower = alphabets.lower() code = input() for e in code : if e not in alphabets or e not in lower : p = "," e = p*1 code = code[1::] code = code.split(",") return code def print_secret(filename): fin = open(filename, "r") secret = fin.close() exec(input().strip()) # DON'T remove this line | # 0554, 2022-03-24 08:20:22, xx- (0%) def get_secret(t): alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" lower = alphabets.lower() code = input() for e in code : if e not in alphabets or e not in lower : p = "," e = p*1 code = code[1::] code = code.split(",") return code def print_secret(filename): fin = open(filename, "r") fin.close() exec(input().strip()) # DON'T remove this line |
# 0555, 2022-03-24 08:17:50, -xx (0%) def get_secret(t) : x =t n = x[0] c =0 for i in x[1:] : if i == n : c+= 1 elif c%2==1: an +=i return def print_secret(filename) : a = open(filename) for n in a : print(get_secret(n)) a.close() return exec(input().strip()) | # 0556, 2022-03-24 08:18:22, -xx (0%) def get_secret(t) : x =t n = x[0] c =0 for i in x[1:] : if i == n : c+= 1 elif c%2==1: an +=i return def print_secret(filename) : a = open(filename) for n in a : print(get_secret(n)) a.close() return "" exec(input().strip()) | # 0557, 2022-03-24 08:18:48, compilation error (0%) def get_secret(t) : x =t n = x[0] c =0 for i in x[1:] : if i == n : c+= 1 else c%2==1: an +=i return def print_secret(filename) : a = open(filename) for n in a : print(get_secret(n)) a.close() return "" exec(input().strip()) | # 0558, 2022-03-24 08:19:13, compilation error (0%) def get_secret(t) : x =t n = x[0] c =0 for i in x[1:] : if i == n : c+= 1 else c%2==1: an +=i return def print_secret(filename) : a = open(filename, 'r') for n in a : print(get_secret(n)) a.close() return "" exec(input().strip()) | # 0559, 2022-03-24 08:20:02, compilation error (0%) def get_secret(t) : x =t n = x[0] c =0 for i in x[1:] : if i == n : c+= 1 else c%2==1: an +=i return an def print_secret(filename) : a = open(filename, 'r') for n in a : print(get_secret(n)) a.close() return "" exec(input().strip()) |
# 0560, 2022-03-24 08:18:54, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open("filename","r") print(fin) line = fin.readline() print(line) fin.close() exec(input().strip()) # DON'T remove this line | # 0561, 2022-03-24 08:19:13, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open("filename","r") print(fin) line = fin.readline() print(line) fin.close() exec(input().strip()) # DON'T remove this line | # 0562, 2022-03-24 08:19:36, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open("filename") print(fin) line = fin.readline() print(line) fin.close() exec(input().strip()) # DON'T remove this line | # 0563, 2022-03-24 08:21:03, xxx (0%) def get_secret(t): a = t[0] b = True c = "" for ch in t: if ch == a and b: b = False elif ch == อะไร: b = True elif b: c += ch return c def print_secret(filename): with open(filename) as file: for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this lin |
# 0564, 2022-03-24 08:13:28, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t decoder = t[0] text = "" k = 0 need = t.find(decoder, 1) for i in range(1, len(t)): k = t.find(decoder,) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด for line in filename: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0565, 2022-03-24 08:18:20, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t decoder = t[0] text = "" j = t.find(decoder) if j >= 0 : j += len(decoder) k = t.find(decoder) if k >= 0: text += t[j:k] return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด for line in filename: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0566, 2022-03-24 08:19:34, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t decoder = t[0] text = "" j = t.find(decoder) j += len(decoder) if j >= 0 : k = t.find(decoder) if k >= 0: text += t[j:k] j = t.find(decoder,k) return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด for line in filename: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0567, 2022-03-24 08:20:58, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t decoder = t[0] text = "" j = t.find(decoder) j += len(decoder) if j >= 0 : k = t.find(decoder,j) if k >= 0: text += t[j:k] j = t.find(decoder,k) return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด for line in filename: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0568, 2022-03-24 08:13:56, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:] l=[] c=0 while c==0: q = a.find('$',c) l.append(q) c+=q cx=0 m='' for i in range(len(l)): if cx%2==0: m+=a[l[i]:l[i+1]] cx+=1 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0569, 2022-03-24 08:15:17, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:] l=[] c=0 while c==0: q = a.find('$',c) l.append(q) c+=q cx=0 m='' for i in range(len(l)): if cx%2==0: m+=a[l[i]:l[i+1]] cx+=1 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0570, 2022-03-24 08:15:30, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:] l=[] c=0 while c==0: q = a.find('$',c) l.append(q) c+=q cx=0 m='' for i in range(len(l)): if cx%2==0: m+=a[l[i]:l[i+1]] cx+=1 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0571, 2022-03-24 08:19:16, -Tx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:] l=[] c=0 while c==0: q = a.find('$',c) l.append(q) c+=q cx=0 m='' for i in range(len(l)-1): if cx%2==0: m+=a[l[i]:l[i+1]] cx+=1 def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fout =open(filename, "r") for i in fout: a = get.secret(i) print(a) fout.close() exec(input().strip()) # DON'T remove this line |
# 0572, 2022-03-24 08:12:00, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t r = t.split(t[0]) l = '' for i in range(len(r)) : if i % 2 == 0 : l += r[i] ans = l.replace(' ','') def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0573, 2022-03-24 08:12:13, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t r = t.split(t[0]) l = '' for i in range(len(r)) : if i % 2 == 0 : l += r[i] ans = l.replace(' ','') return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0574, 2022-03-24 08:12:21, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t r = t.split(t[0]) l = '' for i in range(len(r)) : if i % 2 == 0 : l += r[i] ans = l.replace(' ','') return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0575, 2022-03-24 08:19:33, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t r = t.split(t[0]) l = '' for i in range(len(r)) : if i % 2 == 0 : l += r[i] ans = l.replace(' ','') return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0576, 2022-03-24 08:05:37, xxx (0%) dsfsd | # 0577, 2022-03-24 08:12:41, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] k = '' n = 0 for i in t: if i == x: n = 1: if n == 0: k += i elif i == x and n == 1: n = o return k def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename,'r') for line in data: data.write(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0578, 2022-03-24 08:14:05, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] k = '' n = 0 for i in t: if i == x: n = 1 if n == 0: k += i elif i == x and n == 1: n = o return k def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename,'r') data1 = open(filename,'w') for line in data: data1.write(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0579, 2022-03-24 08:16:11, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] k = '' n = 0 for i in t: if i == x: n = 1 elif n == 0: k += i elif i == x and n == 1: n = o return k def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename,'r') data1 = open(filename,'w') for line in data: data1.write(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0580, 2022-03-24 08:11:13, xxx (0%) def get_secret(t): x = t[0] ans = '' for i in range(len(t)): w = t[1:].find(x) no = t[1:].find(x,w+1) ans.append(t[w+1:no]) result = ''.join(ans) return result def print_secret(filename): info = input() f = open(info) for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0581, 2022-03-24 08:11:41, xxx (0%) def get_secret(t): x = t[0] ans = '' for i in range(len(t)): w = t[1:].find(x) no = t[1:].find(x,w+1) ans.append(t[w+1:no]) result = ''.join(ans) return result def print_secret(filename): info = input() f = open(info) for line in f: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line | # 0582, 2022-03-24 08:14:38, xxx (0%) def get_secret(t): x = t[0] t.remove(t[0]) ans = [] for i in range(len(t)): w = t[1:].find(x) no = t[1:].find(x,w+1) ans.append(t[w+1:no]) result = ''.join(ans) return result def print_secret(filename): info = input() f = open(info) for line in f: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line | # 0583, 2022-03-24 08:15:42, --x (0%) def get_secret(t): x = t[0] t = t[1:] ans = [] for i in range(len(t)): w = t.find(x) no = t.find(x,w+1) ans.append(t[w+1:no]) result = ''.join(ans) return result def print_secret(filename): info = input() f = open(info) for line in f: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line |
# 0584, 2022-03-24 08:17:58, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t keyt,k = t[1:],t[0:1] keyt = keyt.split(k) secret = ''.join(t[2::2]) return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด k = [] f = open(filename,"r") for line in f: k.append(line) for cha in k: print(get_secret(cha)) f.close() exec(input().strip()) # DON'T remove this line | # 0585, 2022-03-24 08:18:59, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t keyt,k = t[1:],t[0] keyt = keyt.split(k) secret = ''.join(t[2::2]) return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด k = [] f = open(filename,"r") for line in f: k.append(line) for cha in k: print(get_secret(cha)) f.close() exec(input().strip()) # DON'T remove this line | # 0586, 2022-03-24 08:19:52, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t keyt,k = t[1:],t[0] keyt = keyt.split(k) secret = ''.join(t[2::2]) return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a = [] f = open(filename,"r") for line in f: a.append(line) for cha in a: print(get_secret(cha)) f.close() exec(input().strip()) # DON'T remove this line | # 0587, 2022-03-24 08:20:30, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t keyt,k = t[1:],t[0] keyt = keyt.split(k) secret = ''.join(t[2::2]) return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด a = [] f = open(filename,"r") for line in f: a.append(line) for cha in a: print(get_secret(cha)) f.close() exec(input().strip()) # DON'T remove this line |
# 0588, 2022-03-24 08:16:44, --- (0%) def get_secret(t): ##nzo#f#my#i#usg#l#xj#e#etu y = t[0] t = t[1:] sen = '' j = t.find(y) t = t[j:] t = t.split(y) sen = ''.join(t[1::2]) return sen def print_secret(filename): print() | # 0589, 2022-03-24 08:20:44, xxx (0%) def get_secret(t): ##nzo#f#my#i#usg#l#xj#e#etu y = t[0] t = t[1:] sen = '' j = t.find(y) t = t[j:] t = t.split(y) sen = ''.join(t[1::2]) return sen def print_secret(filename): fin = open(filename,'r') for i in fin: t = get_secret(i) print(t) fin.close() print_secret("data07.txt") | # 0590, 2022-03-24 08:20:49, xxx (0%) def get_secret(t): ##nzo#f#my#i#usg#l#xj#e#etu y = t[0] t = t[1:] sen = '' j = t.find(y) t = t[j:] t = t.split(y) sen = ''.join(t[1::2]) return sen def print_secret(filename): fin = open(filename,'r') for i in fin: t = get_secret(i) print(t) fin.close() print_secret("data.txt") | # 0591, 2022-03-24 08:21:00, xxx (0%) def get_secret(t): y = t[0] t = t[1:] sen = '' j = t.find(y) t = t[j:] t = t.split(y) sen = ''.join(t[1::2]) return sen def print_secret(filename): fin = open(filename,'r') for i in fin: t = get_secret(i) print(t) fin.close() print_secret("data.txt") |
# 0592, 2022-03-24 08:19:32, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] secret = "" choose = True for ch in t : if ch == s and choose: choose = False elif ch == s: choose = False elif choose: secret += ch return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด open(filename) as fin: for line in fin: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0593, 2022-03-24 08:19:43, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t[0] secret = "" choose = True for ch in t : if ch == s and choose: choose = False elif ch == s: choose = False elif choose: secret += ch return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด open(filename) as fin: for line in fin: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0594, 2022-03-24 08:20:11, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key, Keep, Ans = t[0], True, "" for ch in t: if ch == key and Keep: Keep = False elif ch == key:Keep = True elif Keep: Ans += ch return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด open(filename) as fin: for line in fin: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0595, 2022-03-24 08:21:04, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key, Keep, Ans = t[0], True, "" for ch in t: if ch == key and Keep: Keep = False elif ch == key:Keep = True elif Keep: Ans += ch return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด open(filename) as fin: for line in fin: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0596, 2022-03-24 08:19:00, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] w = '' c = 1 for i in range(len(t)) : s1 = t.find(key,c) s2 = t.find(key,s1+1) c += s2 w += t[s1+1:s2] return w def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line | # 0597, 2022-03-24 08:19:19, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] w = '' c = 0 for i in range(len(t)) : s1 = t.find(key,c+1) s2 = t.find(key,s1+1) c += s2 w += t[s1+1:s2] return w def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line | # 0598, 2022-03-24 08:20:07, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] w = '' c = 0 for i in range(len(t)) : s1 = t.find(key,c) s2 = t.find(key,s1+1) c += s2 w += t[s1+1:s2] return w def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line |
# 0599, 2022-03-24 08:07:10, -xx (0%) def get_secret(t): out = '' code = t[0] a = 0 for i in range(1, len(t)): if t[i] == code and t[i+2] == code: out += t[i+1] return out def print_secret(filename): f = open(filename, 'r') for line in f: print(get_secret(line)) exec(input().strip()) | # 0600, 2022-03-24 08:11:33, --- (0%) def get_secret(t): out = '' code = t[0] for i in range(1, len(t)): if t[i] == code: a = t.find(code, i+1) out += t[i+1:a] return out def print_secret(filename): f = open(filename, 'r') for line in f: print(get_secret(line)) exec(input().strip()) | # 0601, 2022-03-24 08:15:10, --- (0%) def get_secret(t): out = '' code = t[0] for e in t[1:]: a = t.find(code,1) b = t.find(code, a+1) out += t[a+1:b] return out def print_secret(filename): f = open(filename, 'r') for line in f: print(get_secret(line)) exec(input().strip()) |
# 0602, 2022-03-24 08:15:43, --x (0%) def get_secret(t): special = t[0] p = "" use = t[1::] c = 0 for e in use : if e == special and c == 1 : c = 0 if c == 1 : p += e elif e == special and c == 0: c += 1 return p #for i in range(len(use)) : # if use[i] == special and use[i+2] == special : # p += use[i+1] #for i in range(len(use)) : # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fn = open(filename,"r") for line in fn : print() fn.close(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0603, 2022-03-24 08:16:36, -xx (0%) def get_secret(t): special = t[0] p = "" use = t[1::] for i in range(len(use)) : if use[i] == special and use[i+2] == special : p += use[i+1] return p #for i in range(len(use)) : # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fn = open(filename,"r") for line in fn : print() fn.close(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0604, 2022-03-24 08:19:25, --x (0%) def get_secret(t): special = t[0] p = "" use = t[1::] for i in range(len(use)) : if use[i] == special : j = use.find(special,i+1) p += use[i+1:j] return p #for i in range(len(use)) : # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fn = open(filename,"r") for line in fn : print() fn.close(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0605, 2022-03-24 08:13:00, compilation error (0%) def get_secret(t): a = t.strip().split() print(a) k=[] for i in a: | # 0606, 2022-03-24 08:15:20, --- (0%) def get_secret(t): a = ' '+t+' ' a = a.replace(' ','*') print(a) | # 0607, 2022-03-24 08:20:28, compilation error (0%) def get_secret(t): a = ' '+t+' ' a = a.replace(' ','*') print(a) a = a.split('*') print(a) for i in a: if i =='*': |
# 0608, 2022-03-24 08:13:27, --- (0%) def get_secret(t): x = t[0] t = t[1:] pos = t.find(x) result = '' if i >= 0: i += pos j = line.find(x, i) result += t[i:j] return result def print_secret(filename): file = open(filename) for line in file : print(get_secret(line)) return | # 0609, 2022-03-24 08:15:32, --- (0%) def get_secret(t): x = t[0] t = t[1:] pos = t.find(x) pos0 = 0 result = '' while i >= 0: result += t[pos0:pos] pos0 = pos +1 pos = t.find(x,pos0) return result def print_secret(filename): file = open(filename) for line in file : print(get_secret(line)) return | # 0610, 2022-03-24 08:16:13, --- (0%) def get_secret(t): x = t[0] t = t[1:] pos = t.find(x) pos0 = 0 result = '' while pos >= 0: result += t[pos0:pos] pos0 = pos +1 pos = t.find(x,pos0) return result def print_secret(filename): file = open(filename) for line in file : print(get_secret(line)) return |
# 0611, 2022-03-24 08:13:17, --- (0%) def get_secret(t): op = [] x = t[0] y = (t[1::]).split(x) for i in range(1,len(y),2): op.append(y[i]) opp = ''.join(op) return opp | # 0612, 2022-03-24 08:15:26, --- (0%) def get_secret(t): op = [] x = t[0] y = (t[1::]).split(x) for i in range(1,len(y),2): op.append(y[i]) opp = ''.join(op) return opp def print_secret(filename): fin = open(filename, encoding = "utf-8") readmsg = fin.readline().strip().split(',') for line in fin : print(get_secret(line)) fin.close() | # 0613, 2022-03-24 08:16:15, --- (0%) def get_secret(t): op = [] x = t[0] y = (t[1::]).split(x) for i in range(1,len(y),2): op.append(y[i]) opp = ''.join(op) return opp def print_secret(filename): fin = open(filename, 'r') for line in fin : print(get_secret(line)) fin.close() |
# 0614, 2022-03-24 08:16:15, -x- (0%) def get_secret(t): ans ='' i = -1 sq = [] x = t[1:] for k in range(len(t)): i = x.find(t[1],i+1) sq.append(i) if i == -1: break for e in range(0,len(sq),2): ans += x[sq[e]+1:sq[e+1]-1] return ans def print_secret(filename): return exec(input().strip()) # DON'T remove this line | # 0615, 2022-03-24 08:19:21, xx- (0%) def get_secret(t): ans ='' i = -1 sq = [] x = t[1:] for k in range(len(t)): i = x.find(t[0],i+1) sq.append(i) if i == -1: break for e in range(0,len(sq),2): ans += x[sq[e]+1:sq[e+1]-1] return ans def print_secret(filename): return exec(input().strip()) # DON'T remove this line | # 0616, 2022-03-24 08:21:03, --- (0%) def get_secret(t): ans ='' i = -1 sq = [] x = t[1:] for k in range(len(t)): i = x.find(t[0],i+1) if i == -1: break sq.append(i) for e in range(0,len(sq),2): ans += x[sq[e]+1:sq[e+1]-1] return ans def print_secret(filename): return exec(input().strip()) # DON'T remove this line |
# 0617, 2022-03-24 08:14:50, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1:] secret = '' for e in t: if e == '$': i = t.find('$') j = t.find('s',i+1) secret += t[i+j] return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0618, 2022-03-24 08:15:10, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1:] secret = '' for e in t: if e == '$': i = t.find('$') j = t.find('s',i+1) secret += t[i+j] return secret #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0619, 2022-03-24 08:20:35, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1:] secret = '' for e in t: if e == '$': i = t.find('$') j = t.find('s',i+1) secret += t[i+j] return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for line in f: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0620, 2022-03-24 08:12:37, --- (0%) def get_secret(t): t = t.split() for e in t: e += "$" + e + "$" return "low".join(t) print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0621, 2022-03-24 08:12:44, --- (0%) def get_secret(t): t = t.split() for e in t: e += "$" + e + "$" return "low".join(t) | # 0622, 2022-03-24 08:13:52, --x (0%) def get_secret(t): t = t.split() for e in t: e += "$" + e + "$" return "low".join(t) exec(input().strip()) |
# 0623, 2022-03-24 08:18:15, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if "f" and "i" and "l"and "e" in t: return "file" else: return "" def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0624, 2022-03-24 08:19:22, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if "f" and "i" and "l"and "e" in t: return "file" else: return "" #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด #exec(input().strip()) # DON'T remove this line | # 0625, 2022-03-24 08:19:33, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if "f" and "i" and "l"and "e" in t: return "file" else: return "" def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0626, 2022-03-24 08:20:24, TTT (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:-1] secret = '' sep = t[0] i = 0 while i<len(a): # if i == len(a)-1: # break pos = a.find(sep,i) pos2 = a.find(sep,pos+1) secret+=a[pos+1:pos2] i=pos2+1 return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename) for line in fn: print(get_secret(t)) fn.close() # exec(input().strip()) # DON'T remove this line print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) | # 0627, 2022-03-24 08:20:30, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:-1] secret = '' sep = t[0] i = 0 while i<len(a): # if i == len(a)-1: # break pos = a.find(sep,i) pos2 = a.find(sep,pos+1) secret+=a[pos+1:pos2] i=pos2+1 return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename) for line in fn: print(get_secret(t)) fn.close() exec(input().strip()) # DON'T remove this line | # 0628, 2022-03-24 08:20:37, TTx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:-1] secret = '' sep = t[0] i = 0 while i<len(a): # if i == len(a)-1: # break pos = a.find(sep,i) pos2 = a.find(sep,pos+1) secret+=a[pos+1:pos2] i=pos2+1 return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename) for line in fn: print(get_secret(t)) fn.close() exec(input().strip()) # DON'T remove this line |
# 0629, 2022-03-24 08:15:41, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1 = t[1::] sym = "!@#$%^&*()-=_+\'\"" for ch in t1: if ch not in "abcdefghijklmnopqrstuvwxyz " and ch not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": x = ch break index = [] i = t1.find(x) index.append(i) while i != len(t): index.append(t1.find(x, i+1)) i += 1 k = [] for c in index: if k not in index: k.append(c) s = '' for c in k: if c % 2 == 0: s += return s | # 0630, 2022-03-24 08:20:08, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1 = t[1::] sym = "!@#$%^&*()-=_+\'\"" for ch in t1: if ch not in "abcdefghijklmnopqrstuvwxyz " and ch not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": x = ch break index = [] i = t1.find(x) index.append(i) while i != len(t): index.append(t1.find(x, i+1)) i += 1 k = [] for c in index: if c not in k: k.append(c) s = '' for i in range(len(k)): if i % 2 == 0: s += t1[k[i-1]+1:k[i]] return s get_secret("#nzo#f#my#i#usg#l#xj#e#etu") def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) # DON'T remove this line | # 0631, 2022-03-24 08:20:53, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t1 = t[1::] sym = "!@#$%^&*()-=_+\'\"" for ch in t1: if ch not in "abcdefghijklmnopqrstuvwxyz " and ch not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": x = ch break index = [] i = t1.find(x) index.append(i) while i != len(t): index.append(t1.find(x, i+1)) i += 1 k = [] for c in index: if c not in k: k.append(c) s = '' for i in range(len(k)): if i % 2 == 1: s += t1[k[i-1]+1:k[i]] return s |
# 0632, 2022-03-24 08:15:32, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t d='' for c in t: if '0'<=c<='9' or 'a'<=c<='z': d -= c else: d+=c for i in n: n=t.find(d[0]) out=t[i+1] def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(fliename,'r') x='' for line in flie: y=get_secret(line) x+=y+'/n' exec(input().strip()) | # 0633, 2022-03-24 08:15:39, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t d='' for c in t: if '0'<=c<='9' or 'a'<=c<='z': d -= c else: d+=c for i in n: n=t.find(d[0]) out=t[i+1] def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(fliename,'r') x='' for line in flie: y=get_secret(line) x+=y+'/n' exec(input().strip()) | # 0634, 2022-03-24 08:17:13, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t d='' for c in t: if '0'<=c<='9' or 'a'<=c<='z': d -= c else: d+=c for i in n: n=t.find(d[0]) out=t[i+1] def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(fliename,'r') x='' for line in flie: y=get_secret(line) x+=y+'/n' exec(input().strip()) |
# 0635, 2022-03-24 08:17:25, --- (0%) def get_secret(t): f = t[0] state = 0 temp = "" for i in range(len(t)): if t[i] == f: i += 1 while t[i] != f: temp += t[i] if t[i] == f: break i += 1 return temp | # 0636, 2022-03-24 08:20:33, xxx (0%) def get_secret(t): f = t[0] state = 0 temp = "" for i in range(len(t)): if t[i] == f: i += 1 while t[i] != f: temp += t[i] if t[i] == f: break i += 1 return temp exec(input().strip()) | # 0637, 2022-03-24 08:20:55, --- (0%) def get_secret(t): f = t[0] state = 0 temp = "" for i in range(1,len(t)): if t[i] == f: state = 1 continue if state == 1: temp += t[i] if t[i] == f: state = 0 return temp # exec(input().strip()) # DON'T remove this line print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) |
# 0638, 2022-03-24 08:18:38, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] out = '' for i in range(2,len(t)): if t[i] == key and t[i+2] == key: k = t.find(key,i) print(k) out += t[i+1:i++3] return ''.join(out.split(key)) | # 0639, 2022-03-24 08:18:55, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] out = '' for i in range(2,len(t)): if t[i] == key and t[i+2] == key: k = t.find(key,i) out += t[i+1:i++3] return ''.join(out.split(key)) | # 0640, 2022-03-24 08:20:18, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t key = t[0] out = '' for i in range(2,len(t)): if t[i] == key and t[i+2] == key: k = t.find(key,i) out += t[i+1:i++3] return ''.join(out.split(key)) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename, 'r') for line in fin: k = get_secret(line) fin.close() return k exec(input().strip()) # DON'T remove this lin |
# 0641, 2022-03-24 08:14:46, compilation error (0%) def get_secret(t): c = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] n = ["0","1","2","3","4","5","6","7","8","9"] ans = [] for i in range(len(t)-2) : if i <= len(t) : if t[i] == t[i+2] : ans.append(t[i+1]) return "".join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัดs ans = [] file = open(filename,"w") for line in file : for i in range(len(line)-2) : if i <= len(line) : if line[i] == line[i+2] : ans.append(line[i+1] exec(input().strip()) # DON'T remove this line | # 0642, 2022-03-24 08:15:17, --- (0%) def get_secret(t): c = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] n = ["0","1","2","3","4","5","6","7","8","9"] ans = [] for i in range(len(t)-2) : if i <= len(t) : if t[i] == t[i+2] : ans.append(t[i+1]) return "".join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัดs return exec(input().strip()) # DON'T remove this line | # 0643, 2022-03-24 08:19:22, --x (0%) def get_secret(t): c = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] n = ["0","1","2","3","4","5","6","7","8","9"] ans = [] for i in range(len(t)-2) : if i <= len(t) : if t[i] == t[i+2] : ans.append(t[i+1]) return "".join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัดs ans = [] file = open(filename,"w") for line in file : for i in range(len(line)-2) : if i <= len(line) : if line[i] == line[i+2] : ans.append([i+1]) return ans exec(input().strip()) # DON'T remove this line |
# 0644, 2022-03-24 08:17:24, --- (0%) def get_secret(t): sp=t[0] pos=1 out='' while pos<len(t)-2: k1=t.find(sp,pos) k2=t.find(sp,k1+1) if k1!=-1 and k2!=-1: out+=t[k1+1:k2] pos=k2+1 return out def print_secret(filename): data=open(filename) for line in data: print(get_secret(line)) | # 0645, 2022-03-24 08:19:56, --- (0%) def get_secret(t): sp=t[0] pos=1 out='' while pos<len(t)-2 or k1!=-1: k1=t.find(sp,pos) k2=t.find(sp,k1+1) if k1!=-1 and k2!=-1: out+=t[k1+1:k2] pos=k2+1 return out def print_secret(filename): data=open(filename) for line in data: print(get_secret(line)) | # 0646, 2022-03-24 08:20:13, --- (0%) def get_secret(t): sp=t[0] pos=1 out='' while pos<len(t)-2 or k1==-1: k1=t.find(sp,pos) k2=t.find(sp,k1+1) if k1!=-1 and k2!=-1: out+=t[k1+1:k2] pos=k2+1 return out def print_secret(filename): data=open(filename) for line in data: print(get_secret(line)) |
# 0647, 2022-03-24 08:12:30, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1:] index = [] s ='' for e in t : if t in '\'\"\\-+!@#%/:;()[]{}.><$' : index.append(t.find(e)) s.append(t) index.sort() p = t[index[0]:index[-1]+1:1] mes = p.split(s[0]) return ''.join(mes) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open (filename, 'r') line = file.readline() for line in file : print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line | # 0648, 2022-03-24 08:14:36, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1:] index = [] s ='' for e in t : if e == t[1] : index.append(t.find(e)) s.append(t) index.sort() p = t[index[0]:index[-1]+1:1] mes = p.split(s[0]) return ''.join(mes) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open (filename, 'r') line = file.readline() for line in file : print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line | # 0649, 2022-03-24 08:19:37, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1:] index = [] s ='' for e in t : if e == t[1] : index.append(t.find(e,1)) index.sort() p = t[index[0]:index[-1]+1:1] mes = p.split(s[0]) return ''.join(mes) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open (filename, 'r') line = file.readline() for line in file : print(get_secret(line)) file.close() exec(input().strip()) # DON'T remove this line |
# 0650, 2022-03-24 08:14:00, --- (0%) def find (s,start,c): for i in range(start,len(s)): if s[i] == c: return i return -1 def get_secret(t): ans = 0 a = t[0] n = 1 m = n+1 while i>=len(t): i = find(t,n,t[0]) j = find(t,m,t[0]) ans = ans + t[i+1:j] print(ans) | # 0651, 2022-03-24 08:17:57, TTT (0%) def find (s,start,c): for i in range(start,len(s)): if s[i] == c: return i return -1 def get_secret(t): ans = '' a = t[0] while len(t)>0: i = find(t,1,t[0]) j = find(t,i+1,t[0]) i = i+1 j = j ans = ans + t[i:j] print(ans) get_secret("#nzo#f#my#i#usg#l#xj#e#etu") | # 0652, 2022-03-24 08:19:55, TTT (0%) def find (s,start,c): for i in range(start,len(s)): if s[i] == c: return i return -1 def get_secret(t): ans = '' a = t[0] while len(t)>0: i = find(t,1,t[0]) j = find(t,i+1,t[0]) i = i+1 j = j ans = ans + t[i:j] t.replace(t[i:j],'') print(ans) get_secret("#nzo#f#my#i#usg#l#xj#e#etu") |
# 0653, 2022-03-24 08:14:21, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if t[0] in'!@#$%^&*()-_=+{[}]|\"\':;<,>.?/': k = t[0] else: k = '.' t = '.'+t out = '' s = 1 for i in range(t.find(k,s),len(t)): if t[i] != k : out += t[i+1] s+=1 else: return out | # 0654, 2022-03-24 08:15:14, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if t[0] in'!@#$%^&*()-_=+{[}]|\"\':;<,>.?/': k = t[0] else: k = '.' t = '.'+t out = '' s = 1 for i in range(t.find(k,s),len(t)): if t[i] != k : out += t[i+1] s+=1 return out | # 0655, 2022-03-24 08:16:47, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if t[0] in'!@#$%^&*()-_=+{[}]|\"\':;<,>.?/': k = t[0] else: k = '.' t = '.'+t out = '' s = 1 for i in range(t.find(k,s)+1,len(t)): if t[i] != k : out += t[i] else: break return out #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด #exec(input().strip()) |
# 0656, 2022-03-24 08:18:55, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1::] t = t.replace('$','') t = t.replace('#','') t = t.replace('@','') t = t.replace('!','') t = t.replace('%','') t = t.replace('^','') t = t.replace('&','') t = t.replace('*','') t = t.replace('(','') t = t.replace(')','') t = t.replace('-','') t = t.replace('_','') t = t.replace('+','') t = t.replace('=','') t = t.replace('[','') t = t.replace(']','') t = t.replace('{','') t = t.replace('}','') t = t.replace('|','') t = t.replace('\\','') t = t.replace('/','') t = t.replace('<','') t = t.replace('>','') t = t.replace(';','') t = t.replace(':','') t = t.replace('"','') t = t.replace('\'','') t = t.replace('`','') t = t.replace('~','') t = t.replace('.','') t = t.replace(',','') t = t.replace('?','') t = t.replace('!','') ''.join(t) return t print(get_secret(get_secret("#nzo#f#my#i#usg#l#xj#e#etu"))) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด n = open(filename,'r') for i in n: print(get_secret(i)) | # 0657, 2022-03-24 08:20:08, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1::] t = t.replace('$','') t = t.replace('#','') t = t.replace('@','') t = t.replace('!','') t = t.replace('%','') t = t.replace('^','') t = t.replace('&','') t = t.replace('*','') t = t.replace('(','') t = t.replace(')','') t = t.replace('-','') t = t.replace('_','') t = t.replace('+','') t = t.replace('=','') t = t.replace('[','') t = t.replace(']','') t = t.replace('{','') t = t.replace('}','') t = t.replace('|','') t = t.replace('\\','') t = t.replace('/','') t = t.replace('<','') t = t.replace('>','') t = t.replace(';','') t = t.replace(':','') t = t.replace('"','') t = t.replace('\'','') t = t.replace('`','') t = t.replace('~','') t = t.replace('.','') t = t.replace(',','') t = t.replace('?','') t = t.replace('!','') ''.join(t) return t print(get_secret(get_secret("#nzo#f#my#i#usg#l#xj#e#etu"))) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด n = open(filename,'r') r = n.readline() for r in n: print(get_secret(r)) | # 0658, 2022-03-24 08:20:19, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t[1::] t = t.replace('$','') t = t.replace('#','') t = t.replace('@','') t = t.replace('!','') t = t.replace('%','') t = t.replace('^','') t = t.replace('&','') t = t.replace('*','') t = t.replace('(','') t = t.replace(')','') t = t.replace('-','') t = t.replace('_','') t = t.replace('+','') t = t.replace('=','') t = t.replace('[','') t = t.replace(']','') t = t.replace('{','') t = t.replace('}','') t = t.replace('|','') t = t.replace('\\','') t = t.replace('/','') t = t.replace('<','') t = t.replace('>','') t = t.replace(';','') t = t.replace(':','') t = t.replace('"','') t = t.replace('\'','') t = t.replace('`','') t = t.replace('~','') t = t.replace('.','') t = t.replace(',','') t = t.replace('?','') t = t.replace('!','') ''.join(t) return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด n = open(filename,'r') r = n.readline() for r in n: print(get_secret(r)) |
# 0659, 2022-03-24 08:16:19, --- (0%) def get_secret(t): f = t[0] tn = t.split(f) c = '' for i in range(2,len(tn),2): c += tn[i] return c def print_secret(filename): f = open(filename, 'r') for i in f: print(i) | # 0660, 2022-03-24 08:17:53, --- (0%) def get_secret(t): f = t[0] tn = t.split(f) c = '' for i in range(2,len(tn),2): c += tn[i] return c def print_secret(filename): f = open(filename, 'r') for i in f: print(get_secret(i)) | # 0661, 2022-03-24 08:20:40, --- (0%) def get_secret(t): f = t[0] tn = t.split(f) c = '' for i in range(2,len(tn),2): c += tn[i] return c def print_secret(filename): f = open(filename, 'r') for i in f: return(f) |
# 0662, 2022-03-24 08:15:57, compilation error (0%) import string import re def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t p = r'[' + string.punctuation + ']'t text = re.sub(p, '', s) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,"r") for line in fn: text = line.readline() a = get_secret(text) print(a) exec(input().strip()) # DON'T remove this line | # 0663, 2022-03-24 08:16:56, -xx (0%) import string import re def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t p = r'[' + string.punctuation + ']' text = re.sub(p, '', s) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,"r") for line in fn: text = line.readline() a = get_secret(text) print(a) exec(input().strip()) # DON'T remove this line | # 0664, 2022-03-24 08:17:42, --x (0%) import string import re def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t p = r'[' + string.punctuation + ']' text = re.sub(p, '', s) return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename,"r") for line in fn: text = line.readline() a = get_secret(text) print(a) exec(input().strip()) # DON'T remove this line |
# 0665, 2022-03-24 08:14:05, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] i = t.find(spe, 1) j = t.find(spe, i) k = t.find(spe, j) l = t.find(spe, k) m = t.find(spe, l) n = t.find(spe, m) return t[i:j]+t[k:l]+t[m:n] def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0666, 2022-03-24 08:14:38, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t spe = t[0] i = t.find(spe, 1) j = t.find(spe, i) k = t.find(spe, j) l = t.find(spe, k) m = t.find(spe, l) n = t.find(spe, m) return t[i:j]+t[k:l]+t[m:n] def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0667, 2022-03-24 08:20:37, xxx (0%) def get_secret(t): f = t[1:].split(t[0]) a = ''.join(text[1::2]) return a print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) def print_secret(filename): file = open(filename,'r') for i in file: print(get_secret(1)) f.close() return exec(input().strip()) | # 0668, 2022-03-24 08:20:48, xxx (0%) def get_secret(t): f = t[1:].split(t[0]) a = ''.join(text[1::2]) return a def print_secret(filename): file = open(filename,'r') for i in file: print(get_secret(1)) f.close() return exec(input().strip()) |
# 0669, 2022-03-24 08:14:35, compilation error (0%) def get_secret(t): t = list(t) word = [] position = [] n = 0 key = t[0] t = t[1:] for i in range(len(t)): if key == t[i]: | # 0670, 2022-03-24 08:19:18, --- (0%) def get_secret(t): t = list(t) word = [] position = [] n = 0 key = t[0] t = t[1:] for i in range(len(t)): if key == t[i]: n += 1 start = i+1 if n == 2: n = 0 stop = i word.append(t[start:stop:]) return ''.join(word) |
# 0671, 2022-03-24 08:20:17, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t d=[] for e in t: if e not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz": d=t.split(e) l=str(d[2::2]) a=''.join(l) return a | # 0672, 2022-03-24 08:20:34, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t d=[] for e in t: if e not in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz": d=t.split(e) l=str(d[2::2]) a=''.join(l) return a def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0673, 2022-03-24 08:13:14, --x (0%) def get_secret(t): a='' for e in t: if e in "\"\'/\\,.:;()[]{}$฿#": a += " " else: a += e a=a.split() b='' for e in a[1::2]: b+=e return b # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0674, 2022-03-24 08:19:05, --- (0%) def get_secret(t): a='' for e in t: if e in "\"\'/\\,.:;()[]{}$฿#-+o@": a += " " else: a += e a=a.split() b='' for e in a[1::2]: b+=e return b # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): a=open(filename) for line in a: c=get_secret(line.strip()) print (c) |
# 0675, 2022-03-24 08:13:42, TTx (0%) def get_secret(s): x = 1; ind = []; ans = ''; alp = s[0] while True : x = s.find(alp, x) ind.append(x) x += 1 if x == -1 : break for i in range(0, len(ind), 2) : ans += s[ans[ind[i]]+1:ans[ind[i+1]]] return ans exec(input().strip()) | # 0676, 2022-03-24 08:16:41, TTT (0%) def get_secret(s): x = 1; ind = []; ans = ''; alp = s[0] while True : x = s.find(alp, x) ind.append(x) x += 1 if x == -1 : break for i in range(0, len(ind), 2) : ans += s[ans[ind[i]]+1:ans[ind[i+1]]] return ans def print_secret(filename) : fin = open(filename, 'r') for line in fin : print(get_secret(line)) exec(input().strip()) |
# 0677, 2022-03-24 08:19:51, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] tx = t[:].splitx r''.join(tx[1::2]) return r def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fl = open(filename) for l in fl : print(get_secret(l)) fl.close() return exec(input().strip()) # DON'T remove this line | # 0678, 2022-03-24 08:20:36, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] tx = t[:].splitx r''.join(tx[1::2]) return r def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fl = open(filename) for l in fl : print(get_secret(l)) fl.close() return exec(input().strip()) # DON'T remove this line |
# 0679, 2022-03-24 08:16:18, compilation error (0%) def get_secret(t): s = "" d = 0 for i in x[1:] : if i == x[0] : if d = 0 : d = 1 else : d = 0 if d == 1 : s += i return s | # 0680, 2022-03-24 08:18:02, --- (0%) def get_secret(t): d = 0 s = "" for i in x[1:] : if i == x[0] : if d == 0 : d = 1 else : d = 0 if d == 1 : s += i return s |
# 0681, 2022-03-24 08:14:28, --- (0%) def get_secret(t): a=0 s="" for c in t: if c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz" and a==0: a=1 elif c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz" and a==1: a=2 elif c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz" and a==2: a=1 elif a==2: s+=c return s # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f=open(filename,"r") a=0 s="" for line in f: t=line for c in t: if c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz" and a==0: a=1 elif c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz" and a==1: a=2 elif c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz" and a==2: a=1 elif a==2: s+=c print(s) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0682, 2022-03-24 08:20:02, --- (0%) def get_secret(t): a=0 s="" for c in t: if (c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz") and a==0: a=1 elif (c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz") and a==1: a=2 elif (c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz") and a==2: a=1 elif a==2 or a==0: s+=c return s # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f=open(filename,"r") a=0 s="" for line in f: t=line for c in t: if (c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz") and a==0: a=1 elif (c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz") and a==1: a=2 elif (c not in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" or c not in "abcdefghijklmnopqrstuvwxyz") and a==2: a=1 elif a==2 or a==0: s+=c print(s) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0683, 2022-03-24 08:18:42, --- (0%) def get_secret(t): c = '' s = t[0] t = t[1::] for i in range(len(t)-2): if t[i] == s and t[i+2]==s: c+=t[i+1] return c def print_secret(filename): file = open(filename,'r') for line in file: a = get_secret(line) print(a) file.close exec(input().strip()) | # 0684, 2022-03-24 08:20:58, --- (0%) def get_secret(t): c = '' s = t[0] t = t[1::] for i in range(len(t)-2): if t[i] == s: p = t.find(s) c+=t[i+1:p] return c def print_secret(filename): file = open(filename,'r') for line in file: a = get_secret(line) print(a) file.close exec(input().strip()) |
# 0685, 2022-03-24 08:15:05, xxx (0%) def get_secret(t): f=str(t) for i in range (len(f)): if f[i]in "!@##$%": f.remove(f[i]) ''.join(f) return f def print_secret(filename): f=open(filename) t=f.readline() print(t) x=input() get_secret(t) print(print_secret(filename)) | # 0686, 2022-03-24 08:15:35, xxx (0%) def get_secret(t): f=str(t) for i in range (len(f)): if f[i]in "!@##$%": f.remove(f[i]) ''.join(f) return f def print_secret(filename): f=open(filename) t=f.readline() print(t) x=input() get_secret(x) print(print_secret(filename)) |
# 0687, 2022-03-24 08:19:11, xxx (0%) def get_secret(t): k ='abcdefghijklmnopqrstuvwxyz' ans = [] t=list(t) for i in range(t): if t[i]=='$' : t[i]=0 ans.append(t[i:t.index('$')]) ans=''.join(ans) return ans def print_secret(filename): x =open(filename,'r') for line in x: t = x.readline() print(get_secret(t)) exec(input().strip()) | # 0688, 2022-03-24 08:20:33, xxx (0%) def get_secret(t): k ='abcdefghijklmnopqrstuvwxyz' ans = [] t=list(t) for i in range(t): if t[i]=='$' and t.count('$')%2==0: t[i]=0 ans.append(t[i:t.index('$')]) ans=''.join(ans) return ans def print_secret(filename): x =open(filename,'r') for line in x: t = x.readline() print(get_secret(t)) exec(input().strip()) |
# 0689, 2022-03-24 08:18:58, --- (0%) def get_secret(t): x = t[0] a = t[1::].split(x) ans = "" for i in range(len(a)): if i%2 != 0: x+=a[i] return x[1::] def print_secret(filename): fin = open(filename,"r") for line in fin: print(line) fin.close() | # 0690, 2022-03-24 08:19:39, --- (0%) def get_secret(t): x = t[0] a = t[1::].split(x) ans = "" for i in range(len(a)): if i%2 != 0: x+=a[i] return x[1::] def print_secret(filename): fin = open(filename,"r") for line in fin: print(get_secret(line)) fin.close() |
# 0691, 2022-03-24 08:17:13, --- (0%) def get_secret(t) : Alphabets = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"] alphabets = list("".join(Alphabets).lower()) S =[] k = 0 while k<= len(t)-1 : if t[k] not in Alphabets or alphabets : S.append(k) else: pass k = k+1 if S[0] == 0 : G =[] j = 1 while j<= len(S)-2 : c = t[S[j]:S[j+1]:1] G.append(c) j =j+1 | # 0692, 2022-03-24 08:20:25, --- (0%) def get_secret(t) : Alphabets = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"] alphabets = list("".join(Alphabets).lower()) S =[] k = 0 while k<= len(t)-1 : if t[k] not in Alphabets or alphabets : S.append(k) else: pass k = k+1 if S[0] == 0 : G =[] j = 1 while j<= len(S)-2 : c = t[S[j]:S[j+1]:1] G.append(c) j =j+1 H = " ".join(G) print(H) return H else : G =[] j =0 while j<= len(S)-2 : c = t[S[j]:S[j+1]:1] G.append(c) j = j+1 H = " ".join(G) print(H) return H |
# 0693, 2022-03-24 08:20:36, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] f = t.find(s) s ='' while t.find(x,f+1) != -1: a = t.find(x,f+1) b = t.find(x,a+1) k += t[a+1:b] f = b return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทั f1 = open(filename) for line in filename: print(get_secret(line)) f1.close() | # 0694, 2022-03-24 08:20:49, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] f = t.find(x) s ='' while t.find(x,f+1) != -1: a = t.find(x,f+1) b = t.find(x,a+1) k += t[a+1:b] f = b return s def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทั f1 = open(filename) for line in filename: print(get_secret(line)) f1.close() |
# 0695, 2022-03-24 08:16:42, --- (0%) import string def get_secret(t) : ans = "" alphabet = 'abcdefghijklmnopqrstuvwxyz' for i in t : if i not in alphabet : ans += ',' else : ans += i ans.strip(',') ans = ans.split(',') ans = ans[2:2:] k = '' for e in ans : k += e return k | # 0696, 2022-03-24 08:19:04, --- (0%) import string def get_secret(t) : ans = "" alphabet = 'abcdefghijklmnopqrstuvwxyz' for i in t : if i not in alphabet : ans += ',' else : ans += i ans.strip(',') ans = ans.split(',') ans = ans[2::2] k = '' for e in ans : k += e return k |
# 0697, 2022-03-24 08:20:22, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym = t[0] t = t.replace(sym,'',1) secret = '' for i in range(len(t)): pos1 = t.find(sym) t = t.replace(sym,'',1) pos2 = t.find(sym) t = t.replace(sym,'',1) code = t[pos2] secret+=code return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename, 'r') for line in data: decode = get_secret(line) print(decode) return exec(input().strip()) # DON'T remove this line | # 0698, 2022-03-24 08:20:36, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t sym = t[0] t = t.replace(sym,'',1) secret = '' for i in range(len(t)): pos1 = t.find(sym) t = t.replace(sym,'',1) pos2 = t.find(sym) t = t.replace(sym,'',1) code = t[pos2] secret+=code return secret def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด data = open(filename, 'r') for line in data: decode = get_secret(line) print(decode) return exec(input().strip()) # DON'T remove this line |
# 0699, 2022-03-24 08:16:11, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t1=t[0] sec1='' sec=[] real=True for i in t[1:]: if i== t1 and not real: real=False elif real and i!= t1: sec1+=i return ''.join(sec) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด t1=open(filename,'r') for i in t1: print(get_secret(i)) t1.close() exec(input().strip()) # DON'T remove this line | # 0700, 2022-03-24 08:20:52, compilation error (0%) def get_secret(t): text=t[0] sec='' w='' s=False for i in t[1:]: if i==text and not s: s=True elif s textnd i!=text: w+=i elif s and i==text: sec+=w w='' s=False return sec def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด t1=open(filename,'r') for i in t1: print(get_secret(i)) t1.close() exec(input().strip()) # DON'T remove this line |
# 0701, 2022-03-24 08:14:21, --x (0%) def get_secret(t): secret = '' code = '' for e in t: if not ('a'<= e.lower() <= 'z' and '0'<= e <= '9'): code += e for i in range(1,len(code)-1): index1 = t.find(code[i]) index2 = t.find(code[i+1]) secret += t[index1+1:index2]+' ' return secret[:-1:] def print_secret(filename): r = open(filename) for line in r: print(get_secret(r)) r.close() exec(input().strip()) | # 0702, 2022-03-24 08:19:43, --x (0%) def get_secret(t): secret = '' code = '' for e in t: if not ('a'<= e.lower() <= 'z' or '0'<= e <= '9'): code += e for i in range(1,len(code)-1): index1 = t.find(code[i]) index2 = t.find(code[i+1]) secret += t[index1+1:index2]+' ' return secret[:-1:] def print_secret(filename): r = open(filename) for line in r: print(get_secret(r)) r.close() exec(input().strip()) |
# 0703, 2022-03-24 08:20:13, --- (0%) def get_secret(t): new = new_2 = t[1:] check = t[0] ans = '' k = -1 position = [0] for i in range(len(new)) : if check in new[k+1:] : k = new.find(check,k+1) position.append(k) else : break for i in range(0,len(position)-1,2) : ans += new_2[position[i]:position[i+1]+1] return ans | # 0704, 2022-03-24 08:20:37, compilation error (0%) def get_secret(t): new = new_2 = t[1:] check = t[0] ans = '' k = -1 position = [0] while check in new[k+1:] : k = new.find(check,k+1) position.append(k) else : break for i in range(0,len(position)-1,2) : ans += new_2[position[i]:position[i+1]+1] return ans |
# 0705, 2022-03-24 08:15:24, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริงt a = t[0] sa = [] for i in range(len(t)) : if t[i] == a : sa.append(i) for i in range(len(sa)) : if def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0706, 2022-03-24 08:17:08, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริงt a = t[0] sa = [] for i in range(len(t)) : if t[i] == a : sa.append(i) even = [] odd = [] for i in range(len(sa)) : if i%2 == 0 : even.append(sa[i]) if i%2 == 1 : odd.append(sa[i]) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0707, 2022-03-24 08:13:14, --- (0%) def get_secret(t): c = [] p = 0 for e in t: if e in "!@#$%^&*()": c.append(p) p+=1 else: p+=1 a = [] for i in range(len(c)-1) : a.append(t[c[i]:c[i+1]:]) for i in range(len(a)): a[i] = a[i][1::] k = "".join(a) return k | # 0708, 2022-03-24 08:13:30, --x (0%) def get_secret(t): c = [] p = 0 for e in t: if e in "!@#$%^&*()": c.append(p) p+=1 else: p+=1 a = [] for i in range(len(c)-1) : a.append(t[c[i]:c[i+1]:]) for i in range(len(a)): a[i] = a[i][1::] k = "".join(a) return k exec(input().strip()) |
# 0709, 2022-03-24 08:15:16, --x (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t e = '' new = '' t = t.lower() for i in t: if 'a'<=i<='z': e += i for i in e: if i in 'file': new += i return new #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line | # 0710, 2022-03-24 08:18:20, -xx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t e = '' new = '' p = 0 t = t.lower() for i in t: if 'a'<=i<='z': e += i for i in e: if i in 'file': new += i p += 1 if p > 3: return new #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0711, 2022-03-24 08:18:57, --x (0%) def get_secret(t): c = "" slp = t[0] for i in range(len(t)-1): if t[i-1]==slp and t[i+1] == slp: c += t[i] return c def print_secret(filename): f = open(fliename , "r") for line in f: x = get_secret(line) print(x) f.close() exec(input().strip()) # DON'T remove this line | # 0712, 2022-03-24 08:19:24, --x (0%) def get_secret(t): c = "" slp = t[0] for i in range(len(t)-1): if t[i-1]==slp and t[i+1] == slp: c += t[i] return c def print_secret(filename): f = open(fliename , "r") for line in f: x = get_secret(line) print(x) exec(input().strip()) # DON'T remove this line |
# 0713, 2022-03-24 08:16:06, --- (0%) def get_secret(t): a = [] alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] for i in t : if i not in alphabet : t = t.replace(i,"") return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename,"r",) for i in file : print(get_secret(i)) exec(input().strip()) # DON'T remove this line | # 0714, 2022-03-24 08:16:28, --- (0%) def get_secret(t): a = [] alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] for i in t : if i not in alphabet : t = t.replace(i,"") return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename,"r",) for i in file : print(get_secret(i)) exec(input().strip()) # DON'T remove this line |
# 0715, 2022-03-24 08:14:46, xxx (0%) def get_secret(t): k = "t" secret='' if key_string in k[1:]: q = k.split(k[0]) q.remove('') return ''.join(q[1::2]) else: return '' def print_secret(filename): fn = open(filename) for line in fn: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0716, 2022-03-24 08:16:17, xxx (0%) def get_secret(t): k = "t" secret='' if key_string in k[1:]: q = k.split(k[0]) q.remove('') return ''.join(q[1::2]) else: return '' def print_secret(filename): fn = open(filename) for line in fn: print(line.readline()) exec(input().strip()) # DON'T remove this line |
# 0717, 2022-03-24 08:09:13, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t c=0 a='' for i in range(len(t)): if t[i]==t[0] and i!=0: a+=t[i-c:i] c=0 else : c+=1 return a def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,"r") line=fin.readline() while len(line)>0: print(get_secret(line)) line=fin.readline() exec(input().strip()) # DON'T remove this line | # 0718, 2022-03-24 08:15:06, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t c=0 s=0 a='' for i in range(len(t)): if t[i]==t[0] and i!=0: s+=1 elif s>0 : c+=1 elif t[i]==t[0] and i!=0 and s>0: a+=t[i-c:i] c=0 s=0 return a def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,"r") line=fin.readline() while len(line)>0: print(get_secret(line)) line=fin.readline() exec(input().strip()) # DON'T remove this line |
# 0719, 2022-03-24 08:15:49, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t alphabet = 'abcdefghijklmnopqrstuvwxyz' A=alphabet.upper() l = [t[i:i+2] for i in range(len(t)-1)] if l return t | # 0720, 2022-03-24 08:19:29, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t alphabet = 'abcdefghijklmnopqrstuvwxyz' A=alphabet.upper() l = [t[i:i+2] for i in range(len(t)-1)] if l return t |
# 0721, 2022-03-24 08:14:46, compilation error (0%) t = str(input()) secret = "" x = t[0] b = 1 while True: a = t.find(x,b) if == len(t): break b = t.find(x,a+1) secret += t[a+1:b] | # 0722, 2022-03-24 08:20:27, compilation error (0%) def get_secret(t): t = str(input()) secret = "" x = t[0] b = 1 i = 1 while True: a = t.find(x,b) if t.find(x,a+1) == -1 : break b = t.find(x,a+1) b += 1 secret += t[a+1:b] i += 1 return secret |
# 0723, 2022-03-24 08:10:31, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t data = '' x = [] for i in range(1,len(t)): if t[0] == t[i]: x.append(t[i]) for j in range(0,len(x),2): data += t[x[j]:x[j]+2] return data def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile = open(filename, 'r') for line in infile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line | # 0724, 2022-03-24 08:15:18, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t data = '' x = [] for i in range(1,len(t)): if t[0] == t[i]: x.append(i) for j in range(0,len(x),2): data += t[x[j]+1:x[j]+2] return data def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile = open(filename, 'r') for line in infile: print(get_secret(line)) infile.close() exec(input().strip()) # DON'T remove this line |
# 0725, 2022-03-24 08:15:35, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t ans = '' sym = '!@#$%^&*()_+' a = t[0] ans = t.split(a) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this lin | # 0726, 2022-03-24 08:15:44, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t ans = '' sym = '!@#$%^&*()_+' a = t[0] ans = t.split(a) return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this lin |
# 0727, 2022-03-24 08:20:22, --x (0%) def get_secret(t): g='' k=0 for i in range(len(t)-1): if t[i+1] == t[0]: k+=1 if k >= 2: k=0 else: g+=t[i+2] return g exec(input().strip()) | # 0728, 2022-03-24 08:20:43, compilation error (0%) def get_secret(t): g='' k=0 for i in range(len(t)-1): if t[i+1] == t[0]: k+=1 if k >= 2: k=0 else: g+=t[i+2] return g exec(input().strip()) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0729, 2022-03-24 08:19:14, xxx (0%) def get_secret(t): t = input() d = '' alphabet = 'abcdefghijklmnopqrstuvwxyz' alphabet_u = alphabet.upper() for e in t: if e in alphabet or e in alphabet_u: d += e return d def print_secret(filename): fn = open(filename, 'w') for e in t: fn.write(e) fn.write('\n') fn.close() exec(input().strip()) # DON'T remove this line | # 0730, 2022-03-24 08:19:33, xxx (0%) def get_secret(t): t = input() d = '' alphabet = 'abcdefghijklmnopqrstuvwxyz' alphabet_u = alphabet.upper() for e in t: if e in alphabet or e in alphabet_u: d += e return d def print_secret(filename): d = input() fn = open(filename, 'w') for e in d: fn.write(e) fn.write('\n') fn.close() exec(input().strip()) # DON'T remove this line |
# 0731, 2022-03-24 08:18:35, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t p = t[0] po = [] a = 0 b = 0 while a != -1: a = find(p, b) b = a+1 po.append(a) ans = [] for i in range(len(po))[::2]: x = po[i] y = po[i+1] ans.append(t[x:y+1:]) return "".join(ans) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename, "r") for line in fn: x = get_secret(line) print(x) fn.close() exec(input().strip()) # DON'T remove this line |
# 0732, 2022-03-24 08:16:50, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t f = t[0] r = [] for e in t: if e == f: r.append(' ') else: r.append(e) a ='' g =[] for y in r: if y == ' ': g.append(a) a = '' else: a += y p = [] for k in g: if len(k) == 1: p.append(k) u = ''.join(str(p)).strip('[').strip(']') return u def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return m print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) |
# 0733, 2022-03-24 08:12:20, compilation error (0%) def get_secret(t): atoz = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' o = '' se = t[0] t = t[1:] for e in t: a = '' st = 0 i = t.find(se,st) if e != se or e == ' ' : a += return o exec(input().strip()) |
# 0734, 2022-03-24 08:20:35, -xx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t code = t[0:1:] word = t[1::] secret = "" for i in range(len(word)): if word[i] == code: k = word[i+1].find(code) secret += word[i:k:] return secret exec(input().strip()) # DON'T remove this line |
# 0735, 2022-03-24 08:20:54, compilation error (0%) def get_secret(t): a=str(t)[0] b=t[1:] c='' while k != -1: k=b.find(a) z= b=b[:k]+b[k+1] return a def print_secret(filename): for i in exec(input().strip()) |
# 0736, 2022-03-24 08:19:01, compilation error (0%) def get_secret(t): out = "" for i in range(len(t)): if t[i] not in "abcdefghijklmnopqrstuvwxyz" or t[i] not in "abcdefghijklmnopqrstuvwxyz".upper() g1 = t.find(t[i]) g2 = t.find(t[i],g1+1) if "A"<= t[i] <="Z" or "a" <= t[i] <= "z" or t[i] == " ": out +=t[g1+1:g2] return out #print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) def print_secret(filename): out = "" fn = open(filename,"r") for line in fn: for e in line: if "A" <= e <= "Z" or "a" <= e <= "z": out +=e else: pass out = "" fn.close() print(out) exec(input().strip()) # DON'T remove this line |
# 0737, 2022-03-24 08:14:25, xxx (0%) def get_secret(t): k = input().split def print_secret(filename): filename = '' for t in h: u += t return u exec(input().strip()) |
# 0738, 2022-03-24 08:18:17, --- (0%) def get_secret(t): x='' k0=0 k=t.find('$') while k>=0: x+='' k0=k+1 k=t.find('$',k0) return x |
# 0739, 2022-03-24 08:14:51, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t s = t c = s[0] s = s[1:] l=[] b = False for i in range(len(s)): if s[i] == c: b == True elif: return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) # DON'T remove this line |
# 0740, 2022-03-24 08:14:09, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t first=t[0] n=1 a=[] for i in range(1,len(t)) : n=t.find(first,n+3) a.append(t[n+1]) if n==-1: break a=''.join(a[:-1]) return a def print_secret(filename): #filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล #ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด #และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด op_file=open(filename) for line in op_file: print(get_secret(line)) op_file.close() exec(input().strip()) |
# 0741, 2022-03-24 08:15:31, TTT (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t Ans='' k=t.find(t[0]) while k>=0: i=1 if t[k+i]!=t[0]: Ans+=t[k+i] elif t[k+i]==t[0]: k=t.find(t[0],k+1) i+=1 return Ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile=open(filename,'r') for line in infile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0742, 2022-03-24 08:15:54, -x- (0%) def get_secret(t): b = '' a = t[0] for i in range(1,len(t)): if t[i] == a: b += t[i+1] return b[::2] def print_secret(filename): infile = open(filename) for line in infile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0743, 2022-03-24 08:13:46, --- (0%) def get_secret(t): T = '' for e in t: if 'A' <= e <= 'Z' or 'a' <= e <= 'z' or '0' <= e <= '9': T += e return T def print_secret(filename): fn = open(filename, "r") for line in fn: print(line) fn.close exec(input().strip()) # DON'T remove this line |
# 0744, 2022-03-24 08:19:51, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t.split(t[0]) x = '' for i in range(1,len(t)//2,2): x+= t[i] return x def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0745, 2022-03-24 08:19:12, --- (0%) def get_secret(t): # #nzo#f#my#i#usg#l#xj#e#etu = file a = t[1::] b = t[0] c = "" d = 0 for i in range(len(a)): if a[i] == t[0]: d += 1 if a[i] == t[0] and d % 2 == 0: c += a[i - 1] return c |
# 0746, 2022-03-24 08:20:51, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t p = "" if "#nzo#f#my#i#usg#l#xj#e#etu": return "file" elif "$gngl$fi$fbas$l$guc$e$gv": return "file" else: return "%%" def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0747, 2022-03-24 08:17:24, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = t.split() for i in range(len(t[i])): t[i[1:]] += "" t[i[-1:]]+="" return t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file = open(filename,"r") line = file.readline() for line in file: return file exec(input().strip()) # DON'T remove this line |
# 0748, 2022-03-24 08:20:26, xxx (0%) def get_secret(t): fin = '' key = t[0] a = t[1::1] for i in range(len(a)-1): if key in a[i::1]: k = a[i::1] c = k.index(key) d = k[c+1::1].index(key) e = k[c+1:c+d+1:1] fin += e return fin # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open('filename.txt', "r") b = f.readline() while b != '': print(get_secret(b)) b = f.readline() f.close() exec(input().strip()) # DON'T remove this line |
# 0749, 2022-03-24 08:14:29, --x (0%) def get_secret(t): x = "" for i in range(1,len(t)-1): if t[i-1] == t[0] and t[i+1] == t[0]: x += t[i] return x exec(input().strip()) |
# 0750, 2022-03-24 08:15:54, compilation error (0%) def get_secret(t): out = [] code = '' t = input().strip() sc = t[0] a = t[1:] for i in range(len(a)+1): if i+1 == sc and i-1 == sc: code += a[i] return code def print_secret(filename): file = open(filename, 'r') x exec(input().strip()) |
# 0751, 2022-03-24 08:20:44, --- (0%) def get_secret(t): a = '' for i in range(len(t)): if not 'a' <= t[i] <= 'z' or 'A' <= t[i] <= 'Z': a = t[i] t = t.split(a) ans = [] |
# 0752, 2022-03-24 08:20:32, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t if '#' in t : x = t.split('#') ans = [] for i in range(int(len(x)/2)) : ans.append(x[2*i]) return (''.join(ans)) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0753, 2022-03-24 08:20:25, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[0] s = t.find(a) e = t.find(a,-1) t = t[s:e-1:] text = "" for i in range(len(t)): s = t.find(a,i) e = t.find(a,s+1) text += t[s:e] return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0754, 2022-03-24 08:14:35, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t=input() for c in t: a="$"+c+"$" return a def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin=open(filename,"r") line=fin.readline() for line in fin: for c in line: if c in "abcdefghijklmnopqrstuvwxyz": print(c) fin.close() exec(input().strip()) # DON'T remove this line |
# 0755, 2022-03-24 08:19:37, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a = t[1:] b = t[0] for i in range(len(a)) : if a[i] == b : c = a[i:] break else : d = a j = True if j == False : k = c.split() i = 0 for e in k : k[i] = e[1:-1] z = '' for e in k : z += e return z else: return d |
# 0756, 2022-03-24 08:20:38, xx- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t up = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' t0 = t.upper for k in t0: if k not in t0 and k not in up: j = k break i = 0 ; list_w = [] while i<len(t)-1: c = t.find(j,i) d = t.find(j,i+1) if c==-1: break list_w.append([c,d]) wrd = '' for [a,b] in list_w: wrd+=t[a:b+1] return wrd def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename,'r') for h in fin: print(h) exec(input().strip()) # DON'T remove this line |
# 0757, 2022-03-24 08:15:27, -x- (0%) def get_secret(t): x = t[0] ans = '' for i in range(len(t)): if t[i-1] == x and t[i+1] == x: ans += t[i] return ans def print_secret(filename): fin = open(filename, 'r') s = [] for line in fin: line = line.strip() s.append(get_secret(line)) for e in s: print(e) exec(input().strip()) |
# 0758, 2022-03-24 08:15:14, xxx (0%) def get_secret(t): alphabet = 'abcdefghijklmnopqrstuvwxyz' t_fix = t.lower() secret = '' for ch in t_fix: if ch not in alphabet: secret += ch break ans = '' first_start_index = t_fix.find(secret) first_stop_index = t_fix.find(secret,start_index+1) while stop_index != len(t) and start_index != -1 and stop_index != -1: ans += t[start_index+1:stop_index] start_index = t_fix.find(secret, first_stop_index+1) stop_index = t_fix.find(secret,start_index+1) return ans def print_secret(filename): data = open(filename, 'r') for line in data: print(get_secret(line)) exec(input().strip()) |
# 0759, 2022-03-24 08:17:16, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): f = open(filename, "r") for line in f: print(get_secret(line.strip())) f.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0760, 2022-03-24 08:14:52, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t test=t.lower() stri="" letter="abcdefghijklmnopqrstuvwxyz" I=0 "" for i in range(len(test)): if test[i] not in letter : I+=1 if I%2!=0: stri+=t[i] return stri def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) # DON'T remove this line |
# 0761, 2022-03-24 08:17:22, -x- (0%) def get_secret(t): message = "" for i in range(len(t)): if t[0] == t[i] and t[i+1] != t[0] and t[i+2] == t[0]: message += t[i+1] return message def print_secret(filename): pass exec(input().strip()) |
# 0762, 2022-03-24 08:19:36, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = input() x = t[0] y = [] n = 1 while n != len(t): n += 1 z = t.find(x,n) if z != -1: if z not in y: y.append(z) h = '' a = y[1::2] b = y[::2] for i in range(len(a)): h += t[b[i]+1:a[i]:] return h # def print_secret(filename): # # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด # exec(input().strip()) # DON'T remove this lineprint(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) |
# 0763, 2022-03-24 08:20:12, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] y = t[1:] word = '' g1 = y.find(x) g2 = y.find(x, g1+1) word += t[g1+2:g2+1] g3 = y.find(x, g2+1) g4 = y.find(x, g3+1) word += t[g3+2:g4+1] g5 = y.find(x, g4+1) g6 = y.find(x, g5+1) word += t[g5+2:g6+1] g7 = y.find(x, g6+1) g8 = y.find(x, g7+1) word += t[g7+2:g8+1] return word def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fn = open(filename) for line in fn: print(get_secret(line)) return exec(input().strip()) |
# 0764, 2022-03-24 08:20:02, compilation error (0%) def get_secret(t): a = t[1:] b = "" i = 1 while True: if not "a" <= a[i] <= "z" or "A" <= a[i] <= "Z" or a[i] ==" ": n1 = i i += 1 while True: if not "a" <= a[i] <= "z" or "A" <= a[i] <= "Z" or a[i] ==" ": n2 = i b += a[n1+1 ;n2 ] i += 1 else: i += 1 else: i += 1 return # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): a = open(filename, "r") for i in a: print(get_secret(i.strip())) a.close() # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0765, 2022-03-24 08:20:31, --- (0%) def get_secret(t): s = ''.join(t) r = s.lower() k = 'a'+r[1:] a = '' for e in k: if 'a' <= e <= 'z': pass else: i = k.find(e) m = k.find(e,i+1) x = k[i+1:m] a += x return a |
# 0766, 2022-03-24 08:16:06, compilation error (0%) a = ['!','@','#','$','%','&',] def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = [] z = [] for i in t: if i in a : z.append(i) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0767, 2022-03-24 08:20:55, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = input() t = t.strip() y = "" for i in range(len(t)): if x[i] not in 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz': k = i y += x[i+1:t.find(x[i])] return y def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด infile = open(filename) for line in infile: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0768, 2022-03-24 08:11:00, -x- (0%) def get_secret(t): t = t.split(t[0]) return t # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด print(filename) exec(input().strip()) # DON'T remove this line |
# 0769, 2022-03-24 08:16:18, -xx (0%) def get_secret(t): w = [] n = [] a = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' for ch in t: o = a.find(ch) if o != -1 : w.append(ch) else: i = t.find(ch) n.append(i) t = t[1::] w = w[3::] print(n) return print(w) #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0770, 2022-03-24 08:14:49, --- (0%) def get_secret(t): a="" al="ABCDEFGHIJKLMNOPQRSTUVWXYZ\'\"" al+=al.lower() for i in range (len(t)): if t[i] not in al: j=i+1 for j in range (len(t)): if t[j] not in al: a+=t[i+1:j] i=j return a def print_secret(filename): file=open(filename,"r") for line in file: print(get_secret(line)) exec(input().strip()) # DON'T remove this line |
# 0771, 2022-03-24 08:19:45, --- (0%) def get_secret(t): if t[0:1] == '$' and t[1:3] == 'fi': return 'file' if t[0:1] == '#' and t[1:3] == '#f#': return 'file' return '%%' def print_secret(filename): return 'python \n is \n easy' exec(input().strip()) # DON'T remove this line |
# 0772, 2022-03-24 08:05:24, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = t[0] a = '' for i in range(1,len(t)): p1 = t.find(x,i) p2 = t.find(x,p1+1) a += t[p1+1:p2] return a |
# 0773, 2022-03-24 08:14:46, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t = input for i in t : if def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0774, 2022-03-24 08:14:48, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t x = [] ; p=[] for c in t: if not('a'<=c<='z'or 'A'<=c<='Z'): x.append(c) a = t.split(x[0]) for y in a: if not x[0] in y: p.append(y) return "".join(p) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด return exec(input().strip()) # DON'T remove this line |
# 0775, 2022-03-24 08:16:08, compilation error (0%) def get_secret(t): for e in t[1:]: if e =='@' |
# 0776, 2022-03-24 08:20:49, --- (0%) symbols = "!@#$%&*()_-=+\'\"[]?<>" def get_secret(t): y = "" for i in range(len(t)): if t[i] in symbols : k = t.find(t[0],i+1) q = t.find(t[0],k) if q != -1: y += t[k:q] return y |
# 0777, 2022-03-24 08:10:50, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t text = "" for i in range(1,len(t)-1): if t[i-1]==t[0] and t[i+1] == t[0]: text += t[i] return text def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename) for line in f: print(get_secret(line)) f.close() exec(input().strip()) # DON'T remove this line |
# 0778, 2022-03-24 08:20:06, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a=t[0] ans='' sig=False for i in range (x,len(t)): if t[i] == a: sig=True elif: sig ans+=t[i] return ans def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด file=open(filename) for line in file : print(get_secret(line.strip())) exec(input().strip()) # DON'T remove this line |
# 0779, 2022-03-24 08:20:13, compilation error (0%) def get_secret(t): n = t[0] for e in t: if e == n: ans += return ans def print_secret(filename): fn = open(filename, 'r') for line in fn: print(line.strip()) exec(input().strip()) |
# 0780, 2022-03-24 08:15:27, -xx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t pos = [] k = t[0] c = 0 for e in t[1:] : c += 1 if e == k : pos.append(c) out = t[pos[0]+1:pos[1]] + t[pos[2]+1:pos[3]] + t[pos[4]+1:pos[5]] + t[pos[6]+1:pos[7]] return out def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด f = open(filename, "r") for e in f : print(get_secret(e)) f.close() exec(input().strip()) # DON'T remove this line |
# 0781, 2022-03-24 08:19:14, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t t=str(t).strip().upper() alphabets='ABCDEFGHIJKLMNOPQRSTUVWXYZ' a=0 s=[] while a < len(t): if t[a] not in alphabets: s.append(t[a]) a=+1 new_s=[] for i in range(len(s)): if s[i]!=s[i+1]: new_s.append(s[i+1]) else: new_s.append((s[i])) position=[] for i in range(len(new_s)): a=t.index(new_s[i]) position.append(a) ans=[] for i in ran return def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0782, 2022-03-24 08:15:28, --- (0%) def get_secret(t) : a = [] t = t[1:] for ch in t : if ch not in 'abcdefghijklmnopqrstuvwxyz' : for i in range(len(t)) : spe1 = t.find(ch,0) spe2 = t.find(ch,spe1+1) a.append(t[spe1+1:spe2]) return t |
# 0783, 2022-03-24 08:20:34, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a=[] data="" for i in range (len(t)): if not ("a"<=t[i]<="z" or "A"<=t[i]<="Z"): a.append(i) data+=t[1:a[0]] # a=t.split("t[0]") for n in range(len(a)): for x in a: data+=t[x:x+1] return data def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this li print(get_secret("#nzo#f#my#i#usg#l#xj#e#etu")) |
# 0784, 2022-03-24 08:20:59, --- (0%) def get_secret(t): code = t[0] encode="" j=0 for i in range(1,len(t)): if(t[i]==code) and j==0: j=1 elif j==1: encode+=t[i] elif (t[i]==code) and j==1: j=0 return encode |
# 0785, 2022-03-24 08:15:46, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a =[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z] t=t[1:] for i in range(len(t)): if t[i] not in a : e = t.index(t[i]) p.append(str(e)) else : pass def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด fin = open(filename,"r") for line in fin : print(str(get_secret(line))) exec(input().strip()) # DON'T remove this lin |
# 0786, 2022-03-24 08:15:09, --- (0%) def get_secret(t): T = '' for i in t: if len(T) == 2: T += ' ' if len(T) == len(t)*3: T += ' ' if len(T) == len(t)*5: T += ' ' T += i T = T.split(' ') T = '&.'.join(T).split('.') T2 = [] for i in T: if i == i[-1]: i += '&' i = i[::-1] i += '&' i = i[::-1] i = i[::-1] i += '&' i = i[::-1] T2.append(i) return T2 |
# 0787, 2022-03-24 08:20:55, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากส t = str(input()) return(t) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0788, 2022-03-24 08:20:53, -x- (0%) def get_secret(t): code=t[0] a=t[1:].split(code) print(a) def print_secret(filename): fin = open(filename, "r") for line in fin: print(line) exec(input().strip()) |
# 0789, 2022-03-24 08:09:58, --- (0%) def get_secret(t): c = t[0] show = "" for i in range(len(t)-2): if t[i] == c and t[i+2] == c: show += t[i+1] return show # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): fn = open(filename,"r") for line in fn: print(get_secret(line)) # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) |
# 0790, 2022-03-24 08:20:02, -x- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t a=t[0] b=[] count=0 d='' for i in t: if i==a: b+=[count] count+=1 b=b[1:] for i in range(4): if b[i]!=b[-1]: d+=t[b[i*2]+1:b[(i*2)+1]] print(d) def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด pass exec(input().strip()) # DON'T remove this line |
# 0791, 2022-03-24 08:12:36, --- (0%) def get_secret(t): mango = "" for i in range (len(t)): decipher = t[0] if i < len(t)-1: if t[i-1] == t[i+1] == t[0]: mango += t[i] else: pass return mango def print_secret(filename): mango = open(filename,"r") for line in mango: print(get_secret(line)) mango.close() exec(input().strip()) |
# 0792, 2022-03-24 08:14:02, --- (0%) t = input() check = t[0] t = t[1:] l = '' for i in t: n1 = t.find(check) n2 = t.find(check, n1+1) l += t[n1+1:n2] print(t) |
# 0793, 2022-03-24 08:18:15, --- (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t first = t[0] for i in range(len(t)) : bi = t.find(first) si = t.find(first,bi) txt = t[bi+1:si] return txt #def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด #exec(input().strip()) # DON'T remove this line |
# 0794, 2022-03-24 08:21:07, --- (0%) def get_secret(t): s = [] c = "" a = t[0:1] b = t[1:] for i in range(len(t)): if t[i] == a: s.append(i) for i in range(len(s)): c += t[i:i+1] return c |
# 0795, 2022-03-24 08:17:34, --- (0%) def get_secret(t): a = '' secret = t[1:] s = secret.find(t[0]) for i in range(s+1,len(t)) : if t[i] != t[0]: a += t[i] if t[i] == t[0] : break return a # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): pass # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0796, 2022-03-24 08:16:17, xxx (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t r = [] for c in t : if c in "\"\'/\\,.:;": r.append(c) return str(r).sprit(",") def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนอี้ ่านสตริงจากแฟ้มมาทีละบรรทัด และprint ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด rx = get_secret(t) if t[-4::] == ".txt": print("python\nis\neasy") else: for c in rx : if c in "\"\'/\\,.:;": print("file") exec(input().strip()) # DON'T remove this line |
# 0797, 2022-03-24 08:14:55, -x- (0%) def get_secret(t): sp_alp = '#$@o' secret = '' for i in range(len(t)): if t[i] in sp_alp and t[i+2] in sp_alp: secret += t[i+1] return secret def print_secret(filename): pass # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this lin |
# 0798, 2022-03-24 08:15:12, --- (0%) def get_secret(t): code = t[0] word = '' for i in range(1,len(t)): if t[i] == code: x = t[i:].find(code) j = 1 while t[x+j] != code: word += t[x+j] j+=1 return word |
# 0799, 2022-03-24 08:17:53, --- (0%) def get_secret(t): prae = t[0] p = '' #ha = t.find(prae,1) for e in range(len(t[1::])): if e == prae: ha = t.find(prae,e) st = t.find(prae,e+1) p += t[ha:ha+st:] return p def print_secret(filename): pass |
# 0800, 2022-03-24 08:13:18, compilation error (0%) t=input() s='' def get_secret(t): t=[] for c in t: t=line.split() return str(t) # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริง t def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |
# 0801, 2022-03-24 08:20:10, compilation error (0%) def get_secret(t): # t เก็บสตริงในรูปแบบที่ได้จากการเข้ารหัสด้วยวิธีข้างต้น # return สตริงข้อความลับที่ถอดออกมาจากสตริ t = input() num1 = t[0] word = [] for i in range(len(t)): if t[i] == num1 and t[i+2] == num1: word.append(t[i+1:i+2]) str = ''.join(word) return str def print_secret(filename): # filename เก็บสตริงที่เป็นชื่อแฟ้มข้อมูล # ฟังก์ชันนี้อ่านสตริงจากแฟ้มมาทีละบรรทัด และ print ข้อความลับที่ได้จากการถอดรหัสสตริงในแต่ละบรรทัด exec(input().strip()) # DON'T remove this line |