結果
問題 |
No.2209 Flip and Reverse
|
ユーザー |
|
提出日時 | 2023-02-10 21:41:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 1,799 ms |
コンパイル使用メモリ | 193,748 KB |
最終ジャッジ日時 | 2025-02-10 12:25:30 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }