This problem is a tutorial for beginners. I am using this to practise my LUA skills. You can submit the solution to SPOJ in LUA programming language. Almost every …
Unfortunately, in LUA, there is no inbuilt string splitting function, which is very inconvenient. However, you could use string.gmatch to begin a regular expression matching and the following is a …
This simple puzzle is from Timus Online Judge. Despite a lengthy description, the solution is really simple. The number of lines is the number of the seconds he needs …
This puzzle is from Timus Online Judge and you can submit your solution here. The first line of the input is an integer containing the number of total tests, …
The puzzle is from Timus Online Judge. Despite detailed description, which may be confusing, the puzzle is really simple to solve. It asks you to find out the identical …