結果
| 問題 | No.224 文字列変更(easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-01 10:45:15 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| コード長 | 546 bytes |
| コンパイル時間 | 8,515 ms |
| コンパイル使用メモリ | 169,540 KB |
| 実行使用メモリ | 187,076 KB |
| 最終ジャッジ日時 | 2025-12-01 10:45:26 |
| 合計ジャッジ時間 | 11,312 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (117 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
public class Program
{
public static void Main()
{
int num = int.Parse(Console.ReadLine() ?? string.Empty);
//string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
string str = Console.ReadLine() ?? string.Empty;
string str2 = Console.ReadLine() ?? string.Empty;
int count = 0;
for (int i = 0; i < num; i++)
{
if (str[i] != str2[i])
{
count++;
}
}
Console.WriteLine(count);
}
}