結果
| 問題 | No.224 文字列変更(easy) |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-01-03 17:01:01 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 512 bytes |
| 記録 | |
| コンパイル時間 | 2,307 ms |
| コンパイル使用メモリ | 200,964 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-03 17:01:04 |
| 合計ジャッジ時間 | 3,056 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#ifndef ONLINE_JUDGE
#include <debug.hpp>
#else
#define debug(...) 42
#endif
using namespace std;
#define int long long
void solve(){
int n;
string a,b;
cin>>n>>a>>b;
int ans =0;
for(int i=0;i<n;++i){
if(a[i]!=b[i])++ans;
}
cout<<ans<<endl;
}
int32_t main(){
ios::sync_with_stdio(false); cin.tie(nullptr);
int t = 1;
// cin>>t;
int x = 1;
while(t--){
debug(x);
++x;
solve();
}
return 0;
}
vjudge1