### Nerevar's blog

By Nerevar, 6 years ago, translation, ,

Greetings to the Codeforces community!

I'm glad to announce that we again decided to introduce a round based on one of the programming olympiads for schoolchidren in Saratov. This time it is a round for participants from Division II. Round will start at unusual time for Codeforces: 12:00 MSK.

The problems were prepared by MikeMirzayanov and me, while Fefer_Ivan and Gerald helped us with writing alternative solutions.

Members of the first division can participate out of competition, as usual.

Scoring distribution is standard: 500-1000-1500-2000-2500.

UPD: tutorial can be found here.

UPD 2: The model solution for problem E (unfortunately, there were only one model solution) was incorrect. But, the answers for all pretests were correct. After the round we fixed the solution. All submits for problem E were rejudged.

UPD 3: Results are final, ratings are updated.

• +74

 » 6 years ago, # | ← Rev. 2 →   -16 Why the contest is only for div 2?
•  » » 6 years ago, # ^ |   0 because it contains tasks from school olympiad
 » 6 years ago, # |   0 It is a contest for singles~~~~November 11th~ROUND 211...Monday...So many "one"!
 » 6 years ago, # | ← Rev. 2 →   0 What's the meaning of schoolchildren? Which ages does it contain?
•  » » 6 years ago, # ^ |   +7 This olympiad is for students from 8th to 11th grades of Russian school.
 » 6 years ago, # |   0 Hope will get some nice problems ...
 » 6 years ago, # | ← Rev. 2 →   -6 E was a nice problem.
 » 6 years ago, # |   +43 Happiness is
 » 6 years ago, # |   +3 Can someone give the approach to solve problem D : Rent Bike ? Thanks in advance...
•  » » 6 years ago, # ^ |   +2 first make n equals to m : if (n>m) take only the richest m boys, if (n
 » 6 years ago, # | ← Rev. 4 →   0 Ohh , why did I sleep through this contest :( . It looks like I missed a cool codeforces round :) .
 » 6 years ago, # | ← Rev. 2 →   +5 can someone explain me the reason why this solution did not passed?
•  » » 6 years ago, # ^ | ← Rev. 2 →   +6 t+=s[0]; t+=s[1]; t contains 2 chars now, but in answer there is only one (s[0]).s[1] does not exist at all, actually, so that I wonder why it is not runtime error :)
•  » » » 6 years ago, # ^ |   +1 and what will change then in string t after this? t is same as answer,
•  » » » » 6 years ago, # ^ | ← Rev. 2 →   0 What is s[1] ? You think that it is empty? You read string in s, but its length is 1, so that you didn't determine what is s[1]. The only character will be written in s[0], so that s[1] is undetermined.
•  » » » » » 6 years ago, # ^ |   0 I thought so ;(
•  » » » 6 years ago, # ^ |   0 Thanks! My solution failed because of this too!
•  » » » 6 years ago, # ^ |   +3 I think that s[s.size()]='\0', got AC using printf("%s",t.c_str()); 5066622
 » 6 years ago, # |   0 Problems were very interesting. Thanks to Authors...!!!
 » 6 years ago, # | ← Rev. 2 →   0
•  » » 6 years ago, # ^ |   +3 Same thing happened to me! My Submission fails on test 15:Input zz Output zz Answer zz Checker comment wrong answer Result is not a subsequence: 'zz' not in 'zz'
•  » » 6 years ago, # ^ | ← Rev. 4 →   +3 it maybe due to this piece of code ans += s[0]; ans += s[1]; u are adding 2 characters to ans, when there is only one character in input.EDIT: but what i dont know is why this resulted in Wrong Answer rather than Runtime Error. also, i agree with you that the Checker Log is contradicting itself!
•  » » » 6 years ago, # ^ |   0 Yes. Thanks. It should add an extra '\0' to the output string. Removing it, it gets AC. But, I wonder why would an extra null cause checker program to fail.
•  » » » » 6 years ago, # ^ | ← Rev. 3 →   +3 printf("%c",'\0') or cout<<'\0' will print a space.string str(10,'\0');cout<
•  » » » » » 6 years ago, # ^ |   +4 Didn't know that. Thanks! :)
 » 6 years ago, # | ← Rev. 3 →   +2 .
•  » » 6 years ago, # ^ | ← Rev. 2 →   +1 :)
 » 6 years ago, # | ← Rev. 2 →   0 In problem B , I solved in notebook using val += h[i] — h[g]; and unknowingly missed the + sign during coding 5061002 ,as the pretest passed i did not go through the code once :(
 » 6 years ago, # |   0 I got WA in Problem C (test 15) while my program gives the correct answer!Here's my SubmissionCan anyone tell me why this happened?
•  » » 6 years ago, # ^ |   0 This part is causing the problem : ~~~~~ if(s[0] == s[1] && s[1] == s[2]){ index = 2; }else{ s1[2] = s[2]; index = 3; }~~~~~For the given case "zz", s[2] does not exist, thereby the control goes to the else condition and index is set to 3. So you are actually printing extra space along with your answer, which is invalid.
•  » » » 6 years ago, # ^ |   0 in this case...s[2]='\0',it can't be printed...and the '\0'(0) is not the ' '(32)....in ascii...
•  » » 6 years ago, # ^ |   0 yes, my bad ... :( it is '\0' and shouldn't be printed. So the reason which I gave you, regarding your control going to the else condition is correct, whereas you are printing '\0'. Thanks for correcting me mathlover :)
 » 6 years ago, # |   0 Problem E is very nice, but nobody got E accepted during the contest... When will the solution be published?
•  » » 6 years ago, # ^ | ← Rev. 2 →   +8 It's weird that I and several people got the same output for test 20. Is there something tricky in the problem that we possibly misunderstood?
•  » » » 6 years ago, # ^ |   0 I just fixed the bug I had in contest and now I also get incorrect on test 20. Weird...
•  » » » » 6 years ago, # ^ |   0 So do I!
 » 6 years ago, # |   0 How is the standings is computed? Through the submission is accepted, but the standings is so low:(. Can someone explain for me, 3kq.
•  » » 6 years ago, # ^ |   0 See Codeforces contests' format, you'll figure out.
•  » » » 6 years ago, # ^ |   0 Got it!thank you!
 » 6 years ago, # |   0 Can anyone tell.why my this solution failed? 5062164
•  » » 6 years ago, # ^ |   0 Ok.Null charachter was the issue. But i want to know.Why did WA came on 52nd test case when i did not put null charachter in the Output string and printed using %s.
 » 6 years ago, # |   0 Test: #6, time: 0 ms., memory: 792 KB, exit code: 0, checker exit code: 1, verdict: WRONG_ANSWER Input aaa Output aa Answer aa Checker Log wrong answer Result is not a subsequence: 'aa' not in 'aaa'why aa is not in aaa?? http://codeforces.com/contest/363/submission/5062051
 » 6 years ago, # |   0 This contest was much easier with comparison to the previous ones...
•  » » 6 years ago, # ^ |   0 but the E... only one person ac it in the last minute...
 » 6 years ago, # |   +6 Please !!! Update the rating !!! :( Eagerly waiting for that .....
•  » » 6 years ago, # ^ |   +21
 » 6 years ago, # |   0 How to get the test datas?
 » 6 years ago, # | ← Rev. 3 →   0 while trying to submit solutions in practice for today's contest, i got a message saying "Practice is allowed only for finished and unfrozen contests".can anybody help me with this? thanks.
 » 6 years ago, # |   +1 Interesting. Why am I the Candidate Master with rating 1699?
•  » » 6 years ago, # ^ | ← Rev. 2 →   0 I'm Master with rating 1408 :) I think they rollback rating because of some problems related to problem "E"
•  » » » 6 years ago, # ^ |   +6 This is "expert" not "master"
•  » » 6 years ago, # ^ | ← Rev. 2 →   +4 It seems the rating change for this match has been reverted due to an issue of problem E,but they forgot to update the handle colour.....
 » 6 years ago, # |   0 Can you provide an official information of whether the contest will be rated or less?
 » 6 years ago, # |   +3 When will we have the Final standings?
 » 6 years ago, # |   0 The editorial for problem E seems like brute force...What a strong test server...
 » 6 years ago, # |   +11 This was my 100th rated contest on codeforces. After the contest, I have my highest score in an individual contest(4076) , my best rank in a contest (31), my highest rating so far (1742). PS — How many people have 100+ contest on codeforces. Who has the highest number of matches? I know Egor with 111 rated contest. Anyone higher ?
•  » » 6 years ago, # ^ |   -9 Are you happy now?
•  » » 6 years ago, # ^ |   +8
 » 2 years ago, # |   0 For problem C this submission failed whereas this submission got AC. But all i changed was nothing related to the failed test case in the first place. Any reason?