結果

問題 No.224 文字列変更(easy)
ユーザー nobigomu
提出日時 2018-04-21 17:02:54
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 02:34:31
合計ジャッジ時間 1,032 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

print((function (n, s, t)
	local r = 0
	for i=1,n do if s:sub(i,i)~=t:sub(i,i) then r=r+1 end end
	return r
end)(tonumber(io.stdin:read("*l")), io.stdin:read("*l"), io.stdin:read("*l")))
0