Accepted
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