結果

問題 No.2209 Flip and Reverse
ユーザー Rushil KhullarRushil Khullar
提出日時 2023-02-12 19:41:35
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 2,554 ms
コンパイル使用メモリ 199,160 KB
実行使用メモリ 5,624 KB
最終ジャッジ日時 2023-09-23 06:44:08
合計ジャッジ時間 3,937 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 WA -
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 7 ms
5,448 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 8 ms
5,420 KB
testcase_19 AC 7 ms
5,604 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 7 ms
5,372 KB
testcase_24 AC 7 ms
5,444 KB
testcase_25 WA -
testcase_26 AC 7 ms
5,352 KB
testcase_27 AC 7 ms
5,388 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 7 ms
5,372 KB
testcase_31 WA -
testcase_32 AC 7 ms
5,456 KB
testcase_33 AC 8 ms
5,352 KB
権限があれば一括ダウンロードができます

ソースコード

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