結果
| 問題 |
No.224 文字列変更(easy)
|
| コンテスト | |
| ユーザー |
kichirb3
|
| 提出日時 | 2018-02-28 10:17:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 5,000 ms |
| コード長 | 477 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 65,396 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 02:30:20 |
| 合計ジャッジ時間 | 1,372 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
// No.224 文字列変更(easy)
// https://yukicoder.me/problems/no/224
//
#include <iostream>
#include <string>
using namespace std;
int solve(string &S, string &T);
int main() {
int n;
cin >> n;
string S, T;
cin >> S;
cin >> T;
int ans = solve(S, T);
cout << ans << endl;
}
int solve(string &S, string &T) {
int ans = 0;
for (size_t i = 0; i < S.size(); i++) {
if (S[i] != T[i])
ans++;
}
return ans;
}
kichirb3