結果
問題 |
No.2209 Flip and Reverse
|
ユーザー |
|
提出日時 | 2023-02-10 21:49:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 301 bytes |
コンパイル時間 | 1,423 ms |
コンパイル使用メモリ | 167,356 KB |
実行使用メモリ | 7,312 KB |
最終ジャッジ日時 | 2024-07-07 16:02:14 |
合計ジャッジ時間 | 3,558 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(T.begin(), T.end()); int ans = 0; rep(i, N) if(S[i]!=T[i]) ans++; cout << ans << endl; }