/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 16ms 3.098 MiB
#2 Accepted 20ms 3.062 MiB
#3 Accepted 23ms 3.105 MiB

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
Submission
Problem
P1080 String Algorithm
Contest
Bangladesh 2.0
Language
Python 3 (Python 3.12.3)
Submit At
2024-08-16 15:47:17
Judged At
2024-10-03 13:29:57
Judged By
Score
100
Total Time
23ms
Peak Memory
3.105 MiB