← run

cf-2065-a

1.000
3/3 tests· algorithms

Proposed solution

Looking at this problem, I need to:

1. Read the number of test cases
2. For each test case, read a string that ends with "us"
3. Convert it to plural form by replacing "us" with "i"

Let me trace through the examples:
- "us" → "i" (remove "us", add "i")
- "sus" → "si" (remove "us", add "i") 
- "fungus" → "fungi" (remove "us", add "i")
- "cactus" → "cacti" (remove "us", add "i")

The pattern is: take the string and replace the last 2 characters ("us") with "i".

```python
t = int(input())
for _ in range(t):
    w = input().strip()
    # Replace "us" at the end with "i"
    plural = w[:-2] + "i"
    print(plural)
```

Test output (stdout)

...                                                                      [100%]
3 passed in 0.04s
System prompt
You are an expert programmer. Solve the task exactly as specified. Output your solution as fenced code blocks using the required file name(s) and the exact function/type signatures requested. Prefer correctness; do not include prose outside code unless asked.