結果
問題 | No.224 文字列変更(easy) |
ユーザー | vain0 |
提出日時 | 2015-06-12 22:25:08 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 530 bytes |
コンパイル時間 | 621 ms |
コンパイル使用メモリ | 67,316 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 02:00:01 |
合計ジャッジ時間 | 1,425 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <cstring> #include <string> #include <queue> #include <map> #include <vector> #include <algorithm> #include <iostream> #include <cstdio> using namespace std; typedef unsigned int uint; typedef long long ll; typedef unsigned long long ull; #define repi(_I, _B, _E) for(int _I = (_B); (_I) < (_E); ++ (_I)) #define rep(_I, _N) for(int _I = 0; (_I) < (_N); ++ (_I)) signed main() { int n; string s, t; cin >> n >> s >> t; int cnt = 0; rep(i, n) { if ( s[i] != t[i] ) ++cnt; } cout << cnt << endl; return 0; }