結果
| 問題 |
No.224 文字列変更(easy)
|
| コンテスト | |
| ユーザー |
commy
|
| 提出日時 | 2018-02-26 15:18:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 522 ms |
| コンパイル使用メモリ | 67,496 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 02:30:47 |
| 合計ジャッジ時間 | 1,313 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#define REP(i, a, b) for (int i = (a); i < (b); i++)
#define dump(s) cerr << __LINE__ << "\t:" << #s << " = " << (s) << endl
using namespace std;
int main () {
int n;
cin >> n;
string s, t;
cin >> s >> t;
int ans = 0;
REP (i, 0, n) {
ans += (s[i] != t[i]);
}
cout << ans << endl;
return 0;
}
commy