/ SeriousOJ /

Record Detail

Accepted


  

Code

def remove_even_positions(s):
    result = ""
    for i in range(0, len(s), 2):
        result += s[i]
    return result

t = int(input())
for _ in range(t):
    s = input()
    while len(s) > 1:
        s = remove_even_positions(s)
    print(s)

Information

Submit By
Type
Pretest
Problem
P1080 String Algorithm
Language
Python 3 (Python 3.12.3)
Submit At
2024-08-16 15:47:13
Judged At
2024-08-16 15:47:13
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes