結果
問題 |
No.224 文字列変更(easy)
|
ユーザー |
![]() |
提出日時 | 2015-07-25 16:40:47 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 432 bytes |
コンパイル時間 | 1,370 ms |
コンパイル使用メモリ | 159,636 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 02:04:46 |
合計ジャッジ時間 | 2,194 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define repi(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define rep(i,n) repi(i,0,n) int n; string s, t; int solve() { int a = 0; rep(i,n) a += s[i] != t[i]; return a; } void input() { cin >> n >> s >> t; } int main() { cin.tie(0); ios_base::sync_with_stdio(0); cout << fixed << setprecision(12); input(); cout << solve() << endl; return 0; }