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");
                }
            }
        }
    }
}
相关推荐
felixking17 分钟前
C++20 协程
开发语言·c++·协程
Zane1994122 小时前
CAS 与原子类:Java 如何实现无锁编程
java·开发语言
码农颜2 小时前
6.3 主函数流程剖析
开发语言·php
TheBestRucy3 小时前
Python 九阳神功:从零筑基到线程飞升
服务器·开发语言·网络·人工智能·python
研☆香3 小时前
聊一聊前端的常见字 关键字
开发语言·前端·javascript
草莓橙子碗4 小时前
Claude 使用指南
开发语言·python
longxiaozhang64 小时前
C# Array类:数组其实没那么难
开发语言·c#
互联网中的一颗神经元5 小时前
06. Small 对象分配:mcache 无锁路径
开发语言·golang
PPPPickup5 小时前
金证秋招笔试
java·开发语言
典典分享指南5 小时前
GEO 实战:从挖搜索词到监控 AI 收录,一套内容流水线怎么搭
开发语言·青少年编程·numpy·erlang