結果
| 問題 |
No.2209 Flip and Reverse
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-10 21:32:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 1,452 ms |
| コンパイル使用メモリ | 168,192 KB |
| 実行使用メモリ | 7,188 KB |
| 最終ジャッジ日時 | 2024-07-07 15:43:30 |
| 合計ジャッジ時間 | 3,394 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 WA * 11 |
ソースコード
#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;
}