Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -0,0 +1,21 @@
|
|||
string.isLonger = function(s)
|
||||
return self.hasIndex(s.len)
|
||||
end function
|
||||
|
||||
longest = ""
|
||||
lines = ""
|
||||
|
||||
current = input
|
||||
while current
|
||||
if current.isLonger(longest) then
|
||||
lines = current
|
||||
longest = current
|
||||
else if not longest.isLonger(current) then
|
||||
lines += current
|
||||
end if
|
||||
current = input
|
||||
end while
|
||||
|
||||
for i in range(0, lines.len, longest.len)
|
||||
print lines[i:i + longest.len]
|
||||
end for
|
||||
Loading…
Add table
Add a link
Reference in a new issue