結果

問題 No.2209 Flip and Reverse
ユーザー hamigakiko0721hamigakiko0721
提出日時 2023-02-10 21:49:18
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 1,407 ms
コンパイル使用メモリ 165,304 KB
実行使用メモリ 7,200 KB
最終ジャッジ日時 2023-09-21 22:58:43
合計ジャッジ時間 3,873 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 WA -
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 46 ms
7,012 KB
testcase_15 AC 46 ms
7,016 KB
testcase_16 AC 45 ms
6,960 KB
testcase_17 AC 45 ms
7,000 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 45 ms
7,000 KB
testcase_21 AC 47 ms
6,868 KB
testcase_22 AC 46 ms
7,012 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 44 ms
7,008 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 41 ms
6,940 KB
testcase_29 AC 40 ms
7,136 KB
testcase_30 WA -
testcase_31 AC 41 ms
6,864 KB
testcase_32 WA -
testcase_33 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define rep(i,n) for(int i = 0; i < (n); ++i)

int main(){
  int N; cin >> N;
  string S, T; cin >> S >> T;
  reverse(T.begin(), T.end());

  int ans = 0;
  rep(i, N) if(S[i]!=T[i]) ans++;
  cout << ans << endl;
}

  
0