TopCoder

Otter
該趕進度了Willy

User's AC Ratio

100.0% (9/9)

Submission's AC Ratio

60.9% (14/23)

Tags

Description

喵喵高中裡有一個喵喵喵同學

他非常喜歡喵喵叫

但他喵喵叫的速度太快了

所以他不小心把喵喵成貓了

所以請你幫他把貓改成喵

Input Format

第一行一個數字 n , 1 <= n <= 100 ,代表字串的數量

2~n+1行各有一串有"喵"和"貓"的字串,字串長度不超過1000

Output Format

請你把字串中的"貓"都改成"喵"之後輸出

Sample Input 1

3
喵貓貓貓喵喵喵喵
喵喵喵貓貓貓
貓喵喵貓喵喵貓

Sample Output 1

喵喵喵喵喵喵喵喵
喵喵喵喵喵喵
喵喵喵喵喵喵喵

Hints

Python由於編碼問題

請在程式Python程式前加上以下幾行

import sysnimport codecsnsys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())nsys.stdin = codecs.getreader("utf-8")(sys.stdin.detach())

Problem Source

原百十 CKEISC Judge 006

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Memory Limit (RSS, KiB) Output Limit (KiB) Subtasks
0 1000 250000 250000 65536
1 1000 250000 250000 65536
2 1000 250000 250000 65536
3 1000 250000 250000 65536
4 1000 250000 250000 65536
5 1000 250000 250000 65536
6 1000 250000 250000 65536
7 1000 250000 250000 65536
8 1000 250000 250000 65536
9 1000 250000 250000 65536