結果

問題 No.3261 yiwiy9 → yiwiY9
ユーザー aketijyuuzou
提出日時 2025-09-06 14:50:13
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 1,351 bytes
コンパイル時間 15,209 ms
コンパイル使用メモリ 172,096 KB
実行使用メモリ 186,764 KB
最終ジャッジ日時 2025-09-06 14:50:31
合計ジャッジ時間 16,013 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 17
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (115 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static string InputPattern = "InputX";

    static List<string> GetInputList()
    {
        var WillReturn = new List<string>();

        if (InputPattern == "Input1") {
            WillReturn.Add("2 8");
            WillReturn.Add("..yiwiy9");
            WillReturn.Add("9yiwiy..");
            //..yiwiY9
            //9Yiwiy..
        }
        else {
            string wkStr;
            while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
        }
        return WillReturn;
    }

    static long[] GetSplitArr(string pStr)
    {
        return (pStr == "" ? new string[0] : pStr.Split(' ')).Select(pX => long.Parse(pX)).ToArray();
    }

    static void Main()
    {
        List<string> InputList = GetInputList();
        //long[] wkArr = GetSplitArr(InputList[0]);

        for (int I = 1; I <= InputList.Count - 1; I++) {
            string CurrStr = InputList[I];
            CurrStr = CurrStr.Replace("yiwiy9", "A");
            CurrStr = CurrStr.Replace("9yiwiy", "B");

            CurrStr = CurrStr.Replace("A", "yiwiY9");
            CurrStr = CurrStr.Replace("B", "9Yiwiy");

            Console.Write(CurrStr);
            if (I <= InputList.Count - 1) {
                Console.WriteLine();
            }
        }
    }
}
0