show that among any group of five (not necessary consecutive
) integers, there are two with the same remainder when
divided by 4.
Answer / lalala
generalized pigeon principle: If N objects are placed into k
boxes, then there is at least one box containing at least (ceiling) N/k objects.
let k = 4 ;
find N:
N/4 = 2 , N= 5, in order to get the answer 2..
| Is This Answer Correct ? | 17 Yes | 19 No |
Define a way other than using the keyword inline to make a function inline?
What is endianness?
What is setbase c++?
How many ways are there to initialize an int with a constant?
What does iomanip mean in c++?
What is the use of seekg in c++?
which operator is used for performing an exponential operation a) > b) ^ c) none
Can we use resume in error handling i.e. in the catch block
What are the various storage classes in C++?
Explain how overloading takes place in c++?
What is an html tag?
What are the types of STL containers?