結果

問題 No.224 文字列変更(easy)
ユーザー phsplsphspls
提出日時 2020-03-28 00:58:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 2,447 ms
コンパイル使用メモリ 109,244 KB
実行使用メモリ 23,644 KB
最終ジャッジ日時 2023-09-25 02:56:04
合計ジャッジ時間 4,827 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,512 KB
testcase_01 AC 61 ms
19,452 KB
testcase_02 AC 61 ms
21,536 KB
testcase_03 AC 60 ms
21,604 KB
testcase_04 AC 65 ms
21,540 KB
testcase_05 AC 61 ms
21,440 KB
testcase_06 AC 61 ms
21,600 KB
testcase_07 AC 60 ms
21,444 KB
testcase_08 AC 61 ms
23,560 KB
testcase_09 AC 63 ms
23,552 KB
testcase_10 AC 61 ms
21,668 KB
testcase_11 AC 59 ms
21,600 KB
testcase_12 AC 61 ms
23,644 KB
testcase_13 AC 61 ms
21,652 KB
testcase_14 AC 61 ms
21,608 KB
testcase_15 AC 63 ms
23,536 KB
testcase_16 AC 63 ms
21,620 KB
testcase_17 AC 61 ms
21,712 KB
testcase_18 AC 63 ms
23,556 KB
testcase_19 AC 61 ms
21,492 KB
testcase_20 AC 62 ms
21,632 KB
testcase_21 AC 68 ms
21,612 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class P0224 {
    public static void Main() {
        var n = int.Parse(Console.ReadLine().Trim());
        var s = Console.ReadLine().Trim();
        var t = Console.ReadLine().Trim();
        Console.WriteLine(s.ToCharArray().Zip(t.ToCharArray(), (i, j) => new { left = i, right = j }).Where(pair => pair.left != pair.right).Count());
    }
}
0