結果

問題 No.547 未知の言語
ユーザー nobigomu
提出日時 2018-04-29 15:59:46
言語 Lua
(LuaJit 2.1.1734355927)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 23:33:26
合計ジャッジ時間 1,132 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

io.write((function (f, _, s, t)
	local a,i = f(s),1
	for e in t:gmatch("%w+") do if a[i]~=e then return i,"\n",a[i],"\n",e end i=i+1 end
	return i
end)(function (s)
	local a = {}
	for e in s:gmatch("%w+") do table.insert(a,e) end
	return a
end, io.stdin:read("*l"), io.stdin:read("*l"), io.stdin:read("*l")))
0