結果
問題 |
No.2209 Flip and Reverse
|
ユーザー |
|
提出日時 | 2023-02-10 21:58:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 1,369 ms |
コンパイル使用メモリ | 165,564 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 16:13:12 |
合計ジャッジ時間 | 2,769 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 WA * 11 |
ソースコード
#include<bits/stdc++.h> using namespace std; const int N=1e6+10; char s[N],t[N]; int n,ans; int main(){ scanf("%d",&n); scanf("%s",s); scanf("%s",t); for (int i=0;i<n;i++) if (s[n-1-i]!=t[i]) ans++; printf("%d\n",ans); }