結果
問題 | No.224 文字列変更(easy) |
ユーザー |
![]() |
提出日時 | 2022-04-26 23:00:16 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 854 ms |
コンパイル使用メモリ | 71,656 KB |
最終ジャッジ日時 | 2025-01-28 22:02:27 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <iostream> #include <string> #include <cstring> #include <vector> using namespace std; int main() { int N; cin >> N; string S; string T; cin >> S; cin >> T; int cnt = 0; for( int i = 0; i < N; i++ ) { if( S[i] == T[i] ) { } else { cnt++; } } cout << cnt << endl; return 0; }