結果
| 問題 | 
                            No.224 文字列変更(easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-04-09 19:54:02 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 340 bytes | 
| コンパイル時間 | 471 ms | 
| コンパイル使用メモリ | 55,288 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-18 02:13:21 | 
| 合計ジャッジ時間 | 1,067 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);
    int n;
    cin >> n;
    string s, t;
    cin >> s >> t;
    int count = 0;
    for (int i = 0; i < n; ++i) {
        if (s.at(i) != t.at(i)) count++;
    }
    cout << count << endl;
    return 0;
}