Category: LUA programming language
Do you want to compute such numbers in two seconds? such as 85 x 85, 97 x 93, 23 x 27 … ? Multiplication of two digits (from 10 …
The problem is from SPOJ Online Judge The puzzle asks to you check if the given sequence of integers consists of strictly two parts: the first part descending and …
The problem is from SPOJ Online Judge Bruteforce each number from x to n is easy to implement. The 1 second limit is enough for any inputs smaller than 100,000. The …
The problem is from SPOJ Online Judge Since the input of p and q is restricted to 0 and 1, so we can just check its string value. Bit XOR …
The problem is from SPOJ Online Judge It is a A+B problem, so the answer/solution is: print (tonumber(io.read()) + tonumber(io.read())) –EOF (The Ultimate Computing & Technology Blog) — 110 …