結果

問題 No.537 ユーザーID
ユーザー nobigomu
提出日時 2018-03-29 21:27:29
言語 Lua
(LuaJit 2.1.1734355927)
結果
WA  
実行時間 -
コード長 242 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-25 23:52:33
合計ジャッジ時間 1,188 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

print((function (f, n)
	return f(n)
end)(function (n)
	local t,s,c = math.floor(math.sqrt(n)),"%f%f",0
	for i=1,t do
		if n%i == 0 then
			c = c + (s:format(n/i,i) == s:format(i,n/i) and 1 or 2)
		end
	end
	return c
end, io.stdin:read("*n")))
0