結果
| 問題 | No.224 文字列変更(easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-25 06:03:15 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 528 bytes |
| コンパイル時間 | 689 ms |
| コンパイル使用メモリ | 79,032 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 11:00:07 |
| 合計ジャッジ時間 | 1,618 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream> //cin, cout
#include <vector> //vector
#include <algorithm> //sort,min,max
#include <string> //string
#include <ios> //fixed
#include <iomanip> //setprecision
#include <utility> //swap
#include <cstdlib> //abs(int)
#include <cmath> //sqrt
#include <sstream> //stringstream,getline
#include <cmath> //ceil
using namespace std;
int main() {
int n;
string S, T;
cin >> n >> S >> T;
int ans = 0;
for (int i = 0; i < n; i++) {
if (S[i] != T[i]) {
ans++;
}
}
cout << ans << endl;
return 0;
}