結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
![]() |
提出日時 | 2025-09-06 13:33:16 |
言語 | C# (.NET 8.0.404) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,254 bytes |
コンパイル時間 | 10,782 ms |
コンパイル使用メモリ | 171,752 KB |
実行使用メモリ | 187,836 KB |
最終ジャッジ日時 | 2025-09-06 13:33:38 |
合計ジャッジ時間 | 10,686 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 17 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (116 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
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]); foreach (string EachStr in InputList.Skip(1)) { string CurrStr = EachStr; CurrStr = CurrStr.Replace("yiwiy9", "A"); CurrStr = CurrStr.Replace("9yiwiy", "B"); CurrStr = CurrStr.Replace("A", "yiwiY9"); CurrStr = CurrStr.Replace("B", "9Yiwiy"); Console.WriteLine(CurrStr); } } }