/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 16ms 3.004 MiB
#2 Accepted 17ms 2.938 MiB
#3 Accepted 16ms 3.246 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-11-11 03:18:19
Judged By
Score
100
Total Time
17ms
Peak Memory
3.246 MiB