結果
問題 |
No.576 E869120 and Rings
|
ユーザー |
![]() |
提出日時 | 2024-10-13 13:01:28 |
言語 | C# (.NET 8.0.404) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,150 bytes |
コンパイル時間 | 7,848 ms |
コンパイル使用メモリ | 168,688 KB |
実行使用メモリ | 183,920 KB |
最終ジャッジ日時 | 2024-10-13 13:01:38 |
合計ジャッジ時間 | 9,565 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 MLE * 1 |
other | WA * 27 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (95 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) /home/judge/data/code/Main.cs(35,16): warning CS0169: フィールド 'Program.mN' は使用されていません [/home/judge/data/code/main.csproj] /home/judge/data/code/Main.cs(36,16): warning CS0169: フィールド 'Program.mK' は使用されていません [/home/judge/data/code/main.csproj] 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 string[] GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("8 4"); WillReturn.Add("11101110"); //0.857142857142857 } else if (InputPattern == "Input2") { WillReturn.Add("8 4"); WillReturn.Add("11011001"); //0.833333333333333 } else if (InputPattern == "Input3") { WillReturn.Add("10 4"); WillReturn.Add("1001001001"); //0.6 } else { string wkStr; while ((wkStr = Console.In.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn.ToArray(); } static int mN; static int mK; static void Main() { List<string> InputList = GetInputList().ToList(); //int[] wkArr = InputList[0].Split(' ').Select(pX => int.Parse(pX)).ToArray(); //mN = wkArr[0]; //mK = wkArr[1]; return; } }