結果

問題 No.2209 Flip and Reverse
ユーザー hamigakiko0721hamigakiko0721
提出日時 2023-02-10 21:41:42
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 2,088 ms
コンパイル使用メモリ 198,804 KB
実行使用メモリ 7,220 KB
最終ジャッジ日時 2023-09-21 22:47:32
合計ジャッジ時間 4,551 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 WA -
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 46 ms
6,868 KB
testcase_15 AC 46 ms
6,896 KB
testcase_16 AC 46 ms
7,180 KB
testcase_17 AC 45 ms
6,876 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 45 ms
6,992 KB
testcase_21 AC 45 ms
7,180 KB
testcase_22 AC 45 ms
6,888 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 44 ms
6,960 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 41 ms
6,932 KB
testcase_29 AC 41 ms
6,992 KB
testcase_30 WA -
testcase_31 AC 40 ms
6,988 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(all(S));

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

  
0