結果
| 問題 | No.224 文字列変更(easy) |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-01-03 17:59:39 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
AC
|
| 実行時間 | 147 ms / 5,000 ms |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 649 ms |
| コンパイル使用メモリ | 21,668 KB |
| 実行使用メモリ | 15,372 KB |
| 最終ジャッジ日時 | 2026-01-03 17:59:44 |
| 合計ジャッジ時間 | 4,472 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
def min_replacements(n, S, T):
replacements = 0
for i in range(n):
if S[i] != T[i]:
replacements += 1
return replacements
if __name__ == "__main__":
n = int(input().strip())
S = input().strip()
T = input().strip()
result = min_replacements(n, S, T)
print(result)
vjudge1