結果

問題 No.224 文字列変更(easy)
ユーザー nenuon
提出日時 2017-08-01 21:35:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 509 bytes
コンパイル時間 628 ms
コンパイル使用メモリ 88,452 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 02:25:16
合計ジャッジ時間 1,295 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
typedef long long ll;

int main()
{
  int n;
  cin >> n;
  string s, t;
  cin >> s >> t;
  int cnt = 0;
  FOR(i,0,n) {
    if(s[i]!=t[i]) cnt++;
  }
  cout << cnt << endl;
  return 0;
}
0