結果
問題 |
No.2209 Flip and Reverse
|
ユーザー |
|
提出日時 | 2023-02-10 22:26:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 1,408 ms |
コンパイル使用メモリ | 167,524 KB |
実行使用メモリ | 7,312 KB |
最終ジャッジ日時 | 2024-07-07 16:36:41 |
合計ジャッジ時間 | 3,461 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 7 WA * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int n, cnt; string s, t; int main() { cin >> n >> s >> t; for (int i = 0; i < n; i++) { if (s[i] != t[i]) cnt++; } cout << (cnt + 1) / 2 << endl; return 0; }