csharp
复制代码
using System.Collections;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System;
namespace class20240724
{
internal class Program
{
static void Main(string[] args)
{
int count = int.Parse(Console.ReadLine());
for(int i = 0; i < count; i++)
{
string line = Console.ReadLine();
string[] arr = line.Split(',');
if (arr[0].EndsWith("ong") && arr[1].EndsWith("ong."))
{
string[] arr2 = arr[1].Split();
arr2[arr2.Length - 1] = "zhong.";
arr2[arr2.Length - 2] = "ben";
arr2[arr2.Length - 3] = "qiao";
string merge = string.Join(" ", arr2);
Console.WriteLine(arr[0]+","+merge);
}
else
{
Console.WriteLine("Skipped");
}
}
}
}
}