結果
| 問題 | No.224 文字列変更(easy) |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-01-03 17:07:24 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 5,000 ms |
| コード長 | 480 bytes |
| 記録 | |
| コンパイル時間 | 1,879 ms |
| コンパイル使用メモリ | 200,700 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2026-01-03 17:07:29 |
| 合計ジャッジ時間 | 2,851 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
using ll = long long;
using pii = pair<int,int>;
using vi = vector<int>;
#define fastio ios::sync_with_stdio(false); cin.tie(nullptr);
#define all(x) (x).begin(), (x).end()
int main() {
fastio;
int n ;
cin >>n ;
string a , b ;
cin >> a ;
cin >> b ;
int total = 0;
for (int i = 0; i < n; i++) {
if(a[i]!=b[i]) total ++;
}
cout << total;
return 0;
}
vjudge1