結果
問題 |
No.3294 UECoder
|
ユーザー |
![]() |
提出日時 | 2025-10-05 13:35:07 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 1,401 bytes |
コンパイル時間 | 18,994 ms |
コンパイル使用メモリ | 170,604 KB |
実行使用メモリ | 187,144 KB |
最終ジャッジ日時 | 2025-10-05 13:37:04 |
合計ジャッジ時間 | 21,570 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (125 ミリ秒)。 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; using System.Text.RegularExpressions; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("9"); WillReturn.Add("yukicoder"); //UECoder } else if (InputPattern == "Input2") { WillReturn.Add("14"); WillReturn.Add("summervacation"); //UECation } else if (InputPattern == "Input3") { WillReturn.Add("6"); WillReturn.Add("campus"); //UECampus } 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]); string S = InputList[1]; string Answer = Regex.Replace(S, "^.*c", "UEC"); Console.WriteLine(Answer); //long[] wkArr = { }; //Action<string> SplitAct = (pStr) => wkArr = GetSplitArr(pStr); } }