結果
| 問題 | 
                            No.224 文字列変更(easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-01-13 23:56:06 | 
| 言語 | Lua  (LuaJit 2.1.1734355927)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 249 bytes | 
| コンパイル時間 | 117 ms | 
| コンパイル使用メモリ | 6,692 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-17 19:00:26 | 
| 合計ジャッジ時間 | 832 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 | 
ソースコード
local n = tonumber(io.read())
local s = io.read()
local t = io.read()
local ans = (function ()
  local count = 0
  for i = 1, n do
    if not (s:sub(i, i) == t:sub(i, i)) then
      count = count + 1
    end
  end
  return count
end)()
print(ans)