Accepted
Code
t = "SeriousOJ"
for _ in range(int(input())):
n = int(input())
j = 0
s = input()
for i in range(n):
if j == len(t):
break
if s[i] == t[j]:
j += 1
print("YES" if j == len(t) else "NO")
Information
- Submit By
- Type
- Submission
- Problem
- P1147 SeriousOJ Challenge
- Language
- PyPy 3 (Python 3.9.18 PyPy 7.3.15)
- Submit At
- 2025-01-02 06:55:19
- Judged At
- 2025-01-02 06:55:19
- Judged By
- Score
- 100
- Total Time
- 59ms
- Peak Memory
- 20.785 MiB