A — Elephant
We answer will be n/5 if n%5==0 and if it's not 0 means remainder can be 1,2,3,4 which can be done in 1 step so, the output will be n/5+1.
Solution Problem A
B — Summer Camp
This one is a simple brute force problem, we will construct our string with numbers. After construction, we just have to print the n-th element of the string.
Solution Problem B
C — Bear and Five Cards
You need sort the array and find the max of 2 occurrences and max of 3 occurrences from the array, then subtract the maximum with the total sum to get the minimum sum.
Solution Problem C
D — Opponents
You simply need to check if any row has 0 in it and find the largest consecutive such row.
Solution Problem D