結果

問題 No.2209 Flip and Reverse
ユーザー Rushil
提出日時 2023-02-12 19:41:35
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 1,966 ms
コンパイル使用メモリ 192,532 KB
最終ジャッジ日時 2025-02-10 14:52:25
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 18 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS

// @author: rushil

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios::sync_with_stdio(0); cin.tie(0);

    int n; cin>>n;
    int res=0;
    string a,b; cin>>a>>b;
    for(int i=0;i<n;i++) res+=abs(a[i]-b[i]);
    cout<<res<<"\n";
}
0