This is my code it passes the first 4 test cases, however it doesn’t succeed with Validators 1 and 3, can anyone please explain what I could change?
string inputs = Console.ReadLine().Split(' ');
long L = long.Parse(inputs);
long R = long.Parse(inputs);
// Write an answer using Console.WriteLine()
// To debug: Console.Error.WriteLine("Debug messages...");
long sum = 0;
The statement indicates that L and R are inclusive bounds.
Thank you I made R an inclusive bound and it met all 4 validators! I think testcases 5 and 6 are way out of my depth at the moment, I get a “Process has timed out. This may mean that your solution is not optimized enough to handle some cases.” which I’m guessing means my code is not efficient enough to carry out the required computations within the given time.
I am at the same step as you are. Given the huge numbers in the last testcases, there is not enough time for checking each and every number in the range.
My guess is there must be a way to enumerate the numbers.