結果
問題 | No.224 文字列変更(easy) |
ユーザー | 明智重蔵 |
提出日時 | 2015-09-12 09:45:27 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 53 ms / 5,000 ms |
コード長 | 1,523 bytes |
コンパイル時間 | 3,099 ms |
コンパイル使用メモリ | 103,348 KB |
実行使用メモリ | 22,556 KB |
最終ジャッジ日時 | 2023-09-25 02:06:19 |
合計ジャッジ時間 | 5,118 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 52 ms
20,628 KB |
testcase_01 | AC | 53 ms
22,556 KB |
testcase_02 | AC | 53 ms
20,724 KB |
testcase_03 | AC | 52 ms
18,516 KB |
testcase_04 | AC | 53 ms
20,544 KB |
testcase_05 | AC | 53 ms
20,588 KB |
testcase_06 | AC | 53 ms
20,560 KB |
testcase_07 | AC | 52 ms
20,476 KB |
testcase_08 | AC | 52 ms
20,588 KB |
testcase_09 | AC | 53 ms
20,680 KB |
testcase_10 | AC | 52 ms
20,484 KB |
testcase_11 | AC | 53 ms
22,536 KB |
testcase_12 | AC | 52 ms
18,560 KB |
testcase_13 | AC | 52 ms
20,500 KB |
testcase_14 | AC | 52 ms
20,616 KB |
testcase_15 | AC | 52 ms
20,476 KB |
testcase_16 | AC | 52 ms
20,480 KB |
testcase_17 | AC | 52 ms
20,612 KB |
testcase_18 | AC | 52 ms
20,468 KB |
testcase_19 | AC | 52 ms
20,580 KB |
testcase_20 | AC | 52 ms
18,540 KB |
testcase_21 | AC | 53 ms
20,668 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; class Program { static string InputPattern = "Input4"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("7"); WillReturn.Add("aaabbcc"); WillReturn.Add("aabbccc"); //2 //まず、3文字目を'a' -> 'b'と変更すると、 //aaabbcc -> aabbbcc //次に、6文字目を'b' -> 'c'と変更すると、 //aabbbcc -> aabbccc } else if (InputPattern == "Input2") { WillReturn.Add("5"); WillReturn.Add("abcde"); WillReturn.Add("abcde"); //0 //操作を行う必要がないため、0を出力します。 } else if (InputPattern == "Input3") { WillReturn.Add("8"); WillReturn.Add("hidamari"); WillReturn.Add("yunocchi"); //7 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } //No.224 文字列変更(easy) static void Main() { List<string> InputList = GetInputList(); string S = InputList[1]; string T = InputList[2]; int Cost = 0; for (int I = 0; I <= S.Length - 1; I++) { if (S[I] != T[I]) Cost++; } Console.WriteLine(Cost); } }