結果
問題 | No.224 文字列変更(easy) |
ユーザー |
|
提出日時 | 2020-09-07 21:11:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 1,975 ms |
コンパイル使用メモリ | 194,404 KB |
最終ジャッジ日時 | 2025-01-14 08:14:49 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; int solve() { int N, ans = 0; string s, t; cin >> N >> s >> t; rep(i, 0, N) if (s[i] != t[i]) ans++; return ans; } int main() { cin.tie(0); ios::sync_with_stdio(false); cout << solve() << endl; getchar(); }