Tag: math
This problem is from Timus Online Judge. The original problem description can be found here. Again, this problem is marked as for ‘High School Pupils’, which means it very …
This problem is from Timus Online Judge. The original problem description can be found here. This problem is marked as for ‘High School Pupils’, which means it very easy. …
The problem is from Timus Online Judge. Den only has two locks. He never uses the same lock two days in a row. Therefore, if the thief wants to …
The problem is from Timus Online Judge: . The problem asks you to print the square root in reverse order. Pay attention to the input size, which is no …
Remember a couple days ago, we discussed the O(n) and O(n^2) solutions to Single Number ? Question: Given an array of integers, every element appears three times except for one. Find …