blob: f846c84e91aac76027747822973431011e1e08ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/opt/local/bin/lua
--
-- See ../README.md
--
--
-- Run as: lua ch-1.lua < input-file
--
for num in io . lines () do
print (math . floor (math . exp (math . log (tonumber (num)) / 2)))
end
|