At first, I thought rating would take a while. As a result, I opened several leaderboards and waited for more than 20 minutes, but there was no page showing the row of changes of rating. Is this script really not working, is it not working during the competition, or is it purely beca...
Codeforces indicates that you have a wrong answer on the 4th subtest (within the 2nd test). If we analyze it in detail, we can observe that in the first number (87), the digits are not sorted in non-decreasing order. Consequently, the condition in line 41 is not satisfied, and the ...
I am starting from behind in second array and if a Car has moved backwards that is its position in coming out array is greater that coming in array then make it a victim and then for all cars coming before it check if they have crossed it until we find new victim and update it too ...
but when I submit it I'm get back "Wrong answer problem 1" and it's telling me the program is returning 0. I've trying unsuccessfully submitting under all three C++ options but I'm not sure why the online grader is returning a different answer than what I get when...
I was trying to solve this problem
This is the second big thing. Suppose you have a list of problems. For example, you went to the Codeforces problemset page and filtered it to show problems that have difficulty ratingf(your rating)f(your rating)and/or problems that have tags in some topic you want to improve in. What ...
Not sure in java but in C++ a%b works slightly faster if b is a constant. So in the following code int mod = 1e9 + 7 will give TLE but int const mod = 1e9 + 7 will not. dp[0] = 1; for (int i = 1; i <= m; i++) { for (int j = 1; j<= n; j++) { int ...
The next piece of the puzzle I want to consider is the Phonological Loop component of working memory. Working memory is the component of our cognitive function, that is responsible for holding information and manipulating it in the short term. Phonological loop specifically, is that component of ...
144. Why did NursuItanTolshybek mention Zlobober and rng_58 when Codeforces problemset was not working. ... → Reply NursuItanTolshybek 7 years ago, # ^ | +5 Your and rng_58 profile wasn't worked when Codeforces problemset wasn't worked → Reply pleasant 7 years ago, ...
I was wondering about the problem C from Div 1 of Codeforces Round #177 (Problem link:288C - Polo the Penguin and XOR operation). Why does the greedy solution work? The greedy solution is as follows: For every index 'i' from 0 to N, pick an unused number 'n' such that i^n (i...