結果
| 問題 |
No.2209 Flip and Reverse
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-10 21:30:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 82,348 KB |
| 実行使用メモリ | 189,676 KB |
| 最終ジャッジ日時 | 2024-07-07 15:41:53 |
| 合計ジャッジ時間 | 7,559 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 17 WA * 13 |
ソースコード
from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) S = list(input())[:-1] T = list(input())[:-1] X = sum(S[i]!=T[i] for i in range(N)) Y = sum(S[N-1-i]!=T[i] for i in range(N)) print(min(X,Y))