結果
| 問題 | No.224 文字列変更(easy) |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-01-03 17:10:13 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 464µs | |
| コード長 | 606 bytes |
| 記録 | |
| コンパイル時間 | 2,041 ms |
| コンパイル使用メモリ | 334,036 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 00:15:19 |
| 合計ジャッジ時間 | 3,652 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
//
// a.cpp
// Created by wasifshahzad on 01/03/26 at 12:52:03.
//
#include <bits/stdc++.h>
using namespace std;
#define int long long
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
const int MOD1 = 1e9+7;
const int MOD2 = 998244353;
void solve() {
int n;
cin >> n;
string a, b;
cin >> a >> b;
int ans = 0;
for(int i = 0; i < n; i++) {
ans += (a[i] != b[i]);
}
cout << ans;
}
signed main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T = 1;
// cin >> T;
while(T--) {
solve();
}
}
vjudge1