We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Search
- Gridland Metro
- Discussions
Gridland Metro
Gridland Metro
Sort by
recency
|
423 Discussions
|
Please Login in order to post a comment
C++ solution with long long instead of int
There's a mistake in the stub code given for C++14 - the function we need to write should return 'long long' type, not 'int'. Otherwise the results gets truncaded for the large input.
import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Scanner;
public class Solution {
}
This was the last task on this stupid site. Fortunately, there are many good sites with a similar focus.
What kind of idiotic condition is this? How can this be?
`Why k=3 if I see 4 tracks??? I have already tried several solutions, but none of them work.