結果
問題 |
No.224 文字列変更(easy)
|
ユーザー |
|
提出日時 | 2019-09-03 23:42:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 666 bytes |
コンパイル時間 | 1,404 ms |
コンパイル使用メモリ | 166,980 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 02:41:37 |
合計ジャッジ時間 | 2,024 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
/** @file 224.cpp @title No.224 文字列変更(easy) - yukicoder @url https://yukicoder.me/problems/no/224 **/ #include <bits/stdc++.h> using namespace std; #define LL long long #define ULL unsigned long long #define LD long double #define MP make_pair #define PB push_back #define ALL(obj) (obj).begin(), (obj).end() #define REP(i, N) for (int i = 0; i < (N); ++i) #define DEBUG(x) cout << "(L:" << __LINE__ << ") DEBUG: " << x << endl; #define MOD 1e9 + 7 int main() { int N; cin >> N; string S; cin >> S; string T; cin >> T; int ans = 0; REP(i, N) { if (S[i] != T[i]) { ans++; } } cout << ans << endl; return 0; }