Tag: math
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 …
Question: Given an integer (maximum 100), compute the number of distinct ways to split the number using non-negative integer numbers. For example, given 5, there are 7 ways to …