L1-059 敲笨钟 c#

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");
                }
            }
        }
    }
}
相关推荐
大萌神Nagato1 分钟前
python 包管理器uv
开发语言·python·uv
humcomm10 分钟前
AI 编程时代-全栈开发技术栈解析
开发语言·人工智能
人道领域22 分钟前
【黑马点评日记】社交平台用户关注功能全解析Feed流相关操作
java·开发语言·数据库·redis·python
xiaoshuaishuai843 分钟前
C# DeepSeek V4 与 V3对比
开发语言·c#·量子计算
shehuiyuelaiyuehao1 小时前
算法18,二分查找
java·开发语言·算法
IT策士1 小时前
Python mcp研究:入门到精通
开发语言·python·qt
罗技1231 小时前
告别“兼容模式“:Easysearch 有了自己的官方 Python 客户端
开发语言·python
weixin_446729161 小时前
java网络通讯
java·开发语言
IT策士1 小时前
Python 常见的设计模型:入门到精通
开发语言·python
不会写DN1 小时前
如何通过 Python 实现招聘平台自动投递
开发语言·前端·python