結果
問題 | No.224 文字列変更(easy) |
ユーザー |
![]() |
提出日時 | 2020-08-11 15:37:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 477 bytes |
コンパイル時間 | 816 ms |
コンパイル使用メモリ | 90,884 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 11:27:02 |
合計ジャッジ時間 | 1,738 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <iomanip> #include <stack> #include <algorithm> #include <string> #include <map> #include <iterator> #include <set> #include <queue> using namespace std; int main() { int n; cin >> n; string S, T; cin >> S >> T; int cnt = 0; for (int i = 0; i < n; ++i) { if(S[i] != T[i]) { cnt += 1; } } cout << cnt << endl; return 0; }