結果
問題 |
No.224 文字列変更(easy)
|
ユーザー |
|
提出日時 | 2022-01-14 00:04:51 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 255 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 5,120 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 19:32:09 |
合計ジャッジ時間 | 757 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
local n = io.read("*n"); io.read(1) 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)