/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 3.027 MiB
#2 Accepted 17ms 3.168 MiB
#3 Accepted 16ms 3.062 MiB

Code

def process_string(a):
    while len(a) > 1:
        a = a[::2]  
    return a

def main():
    T = int(input())  
    
    for _ in range(T):
        A = input().strip()  
        result = process_string(A)
        print(result)

if __name__ == "__main__":
    main()

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:38:40
Judged At
2024-10-03 13:30:50
Judged By
Score
100
Total Time
17ms
Peak Memory
3.168 MiB