Блог пользователя jinlifu1999

Автор jinlifu1999, 9 лет назад, По-английски

Hello, Codeforces!

It's my honor to invite you to Codeforces Round #460 (Div. 2), which takes place at 13:05 UTC, January 31st. The round will be rated for all division 2 participants. Also we warmly welcome those division 1 participants to join us out of competition. Note that round starts in the unusual time! :)

This round is prepared by me and my friend wuminyan0607. Many thanks to my friend for helping me testing the round and generating testcases. Besides, many thanks to the Codeforces coordinator KAN for giving me a chance to hold this round, testers cdkrot, cyand1317, demon1999, Glebodin, vintage_Vlad_Makeev, FalseMirror for testing this round and MikeMirzayanov for the great Codeforces and Polygon platforms. Without their huge effort, this round would't be possible.

Hope you can find these problems interesting. Wish all of you fewer bugs and higher rating!

The scoring distribution will be announced soon.

UPD1: There will be 6 problems and you have 2 hours to solve them. The scoring distribution will be 500-750-1000-1500-2000-2500.

UPD2: System test is over. Hope you will like those problems. Congratulations to the winners!

Div. 2

  1. OO0OOO00O0O0O0O00OOO0OO (Solved all 6 problems and got 4 successful hacking attempts)

  2. pannibal (Solved all 6 problems)

  3. sasasagagaga

  4. answerrtx

  5. Kemal

  6. Ren_shimosawa

  7. UoA_Kanade

  8. just_soso

  9. jijiang

  10. TayTayTayTaylor

Div. 1 & Div. 2

  1. KrK

  2. Vercingetorix

  3. OO0OOO00O0O0O0O00OOO0OO

  4. uwi

  5. black_horse2014

  6. TonySnark

  7. zscoder

  8. Marco_L_T

  9. quailty

  10. pannibal

UPD3: Editorial is ready!

  • Проголосовать: нравится
  • +402
  • Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

two consecutive rated rounds that's good__

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

What's the name of the cute character? :P

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

Good time for East Asia participants!

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

To be honest, if these bears appear in the problem statements, I'll consider spending the remaining contest time looking at them instead of raging randomly :P

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -26 Проголосовать: не нравится

1 upvote = 1 pray

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

We will try to bear this round too.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -7 Проголосовать: не нравится

This time, my handle will definitely turn into "Green" . Nobody can stop me !

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Cute drawings!

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Another cute images contest!

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +11 Проголосовать: не нравится

I think that adrozdova is very old nick of demon1999) Why do you use it?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

CS Academy Round #67 starts right after the round, is there something to be done about this?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +24 Проголосовать: не нравится

Is this round a Chinese round?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +8 Проголосовать: не нравится

I realized the author is Chinese at the first sight of thinking bear... BTW, I study in SJTU too. It's frustrating that campus network doesn't work from 00:00 to 06:00. So now it's a fantastic chance for us to participate in contests and get higher rating, isn't it?@jinlifu1999

»
9 лет назад, скрыть # |
← Rev. 4  
Проголосовать: нравится +6 Проголосовать: не нравится

I hope the difficulty gradient for this contest will be somewhat better than the last one. 2 rated contest in a row. ✌

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +52 Проголосовать: не нравится

"The scoring distribution will be announced soon."

Lies, lies everywhere.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится

Support teacher Jin OVO 资磁靳老师

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

solved 2 problems and got 50+ ratings :) , seems cool :D:D

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Will the problems` background happens on "the thinking bear"?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -13 Проголосовать: не нравится

Who found a palindrome here?

PS. I love palindromes.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Yet another Chinese round...

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm interesting in if the round time was scheduled so that it does not overlap with the round on csacademy? Anyway, coordinators, good job!

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -24 Проголосовать: не нравится

hope everyone dies in this round :) :> :D xD =) =D <3 (:

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

BJLFZS

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +18 Проголосовать: не нравится

CONTEST, CONTEST and CONTEST...

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

thinking bear, moe! baidu's only contribution(LUL

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +17 Проголосовать: не нравится

Can't go to WC,so I'm here for CF round.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

If it's half an hour ahead, it's perfect.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Please correct the timing of this contest in the Codeforces Calendar. It is 30 minutes ahead.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I have a question to those people who submit Problem A just in 1 minute ..??

A problem takes at least 3-5 minute to read from me, So how could you..??

Do you want to share or give me any tips about this..??

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +21 Проголосовать: не нравится

jinlifu1999

Can we have the editorials please ?

Edit : I wanted the editorial for Round #459. I did not notice and asked it here before the start of this contest. Sorry for the misconception.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Good luck to all!

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

This is a perfect time for afternoon brazilian students. Thanks

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

30 minutes after the beginning of the round, super blue blood moon rises..

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Just Curious to know, Why some contest have Unusual start time.

I wonder how CF appeals to global audience with all the different time zones. BTW In INDIA I prefer 15:35 UTC.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

This is the first time I used this account to participate in CF. What do I need to watch out for?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

It's lunar eclipse today while the contest and it's happening after a long time but consecutive two "fully" rated contest is even rare!:p XD lol. Let's hope it's worth missing the eclipse!!

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

"The scoring distribution will be announced SOON." What does "SOON" mean? :)

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hope for the short problem statements

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Because of the eclipse, I may have to endure the wind on the balcony to participate in this game. I think this is not a pleasant experience :(

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -35 Проголосовать: не нравится

hope contest will be rated my first contest wish everone big rating so excited about it thank you MikeMirzayanov for platform codeforces.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

Another contest without scoring distribution...

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится

The first time that I'm happy that my flight is delayed! I could participate in a CF round at least! ¯_(ツ)_/¯

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

What does "consecutive" means in C?

Does

2 3 3 **. ...

gives the answer of 2 rather than 1?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +14 Проголосовать: не нравится

it took me 37 min to see that k could be 1 in c ugh... the text said for you and your firends that made me thin k>=2

from 1500 to 2500 because of this mistake ...my first life lesson in cf :

READ THE PROBLEM CLEARLY!

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

How to solve D?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +6 Проголосовать: не нравится

Very nice round, with good difficulty distribution.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

How to solve E?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

what might be the 15th testcase in D ? I kept getting tle .

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +15 Проголосовать: не нравится

I'm very impressed by the problem E. Very very nice.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +41 Проголосовать: не нравится

k=1 in problem C :)

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

What was test 15 in Problem D? I was getting a TLE. Is there a better solution than O(26*(V+E))? I did a DFS and stored the counts of all alphabets in a vector and took the maximum of them when I reached a leaf. I did this for every disconnected portion of the graph and took the maximum out of them.

Edit: It wasn't because of cycles, unless my code for detecting cycles was wrong. I had taken care of them beforehand

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

It was my dream to be purple after this contest, but it seemed that I failed.

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +40 Проголосовать: не нравится

Problem C in a nutshell

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +10 Проголосовать: не нравится

That moment when you lock your problem and after that you realize your solution has a bug

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

Anyone with a hint on how to handle E when x/p is greater than p?

My contest in a nutshell: solved 3 first problems in 10 minutes, got hacked in C and recovered right after, stuck with D for an eternity without knowing exactly what I've done wrong, then going on with E and realize that there wasn't enough time to make it perfect...

UPD: Just realized that my topological solution for D has gone completely wrong. Well the suffering seems to have no end... :<

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится
»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I submitted two codes for problem 2 Code 1 in Java: http://codeforces.me/contest/919/submission/34754490 code 2 in C++: http://codeforces.me/contest/919/submission/34757925 Both the codes have exactly same implementation, but, Java code got TLE on pretest 6 whereas C++ Code passed the pretests ! How is this possible?? I don't think fast IO can be a issue here. Can anyone explain why did it happen? Thank you !

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +21 Проголосовать: не нравится

Thanks jinlifu1999, Good contest :)

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

Problem C:

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Am I the only one to do binary search with digit dp in B? :D

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

![Summary of the contest]()

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +67 Проголосовать: не нравится

JUST WTF MAN!! I wrote code for E and put it paste.ubuntu.com for sending it after contest (I sent link to myself so I could send code with mobile phone). Now I looked some peoples' code and I see they just COPIED MY CODE. How this happens! Is there any reliable paste site?

My code created 14:22:32: https://paste.ubuntu.com/26495347/

Some examples sent after my code:

http://codeforces.me/contest/919/submission/34769724 LMissher

http://codeforces.me/contest/919/submission/34769669 20155603

I know it's my mistake, but I want them to get disqualified from contest as it is really unfair.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Am I the only one who saw k=100000 in B and spent 1 hour thinking about how to solve it ?

  • »
    »
    9 лет назад, скрыть # ^ |
    ← Rev. 2  
    Проголосовать: нравится 0 Проголосовать: не нравится

    Even if k=100000 you can use the same solution that you use for k=10000. Just ran my code and it was < 1 s.

    EDIT: Didn't realize you could literally brute force every number. I had tried that and it seemed too long for k=10000, so I did another sort of brute force enumeration, enumerating in lexicographically smallest order.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can anyone send a code of problem E?

思考熊

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

In problem B, is there a way to estimate the number of digits in the 10000th perfect number?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +16 Проголосовать: не нравится

In problem D, the problem statement says a path's value. Path in most cases means the vertices cannot repeat in the path. But the question assumes that the vertices can repeat and hence the answer is -1 if there is a cycle in the graph. I only understood the assumption after looking at the second test case and wasted a lot of time before that. Anyone face this problem?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Whats Happens if I get a TLE on the first pretest of a problem? Do I get a -50 points for it?

(I know that there is no penalty for a WA but am not sure for a TLE)

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Note to self: remember that an element's order in Z_p is not necessarily p -1. I failed E because of this. Oh well.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

i did a normal dfs on problem D and i count the value after reaching each leaf and get the maximum value between last value and this value,but i got wrong answer. can someone tell me why my solution is wrong?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can someone please help me to figure out difference between my solution and this solution. It seems same but my solution is giving TLE.

mathmaniac, we both have done same thing. What is the problem with my solution?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -10 Проголосовать: не нравится

It was easy contest

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

So problem C says "You need to find k consecutive empty seats in the same row or column and arrange those seats for you and your friends", and "k consecutive empty seats" means "k seats that are consecutive without considering those seats that are occupied" instead of "k seats that are consecutive and they are all empty". That's why I'm hacked...

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +3 Проголосовать: не нравится

I don't understand why submission http://codeforces.me/contest/919/submission/34754490 although submited at 00:42:27,it is has been run after all other submissions.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +7 Проголосовать: не нравится

Can someone see why this submission TLE for problem D 34771026? or it is just because of time constraint is too tight for Java?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Height of UNLUCKINESS. Got one test case wrong only enough to destroy rank in 4th problem. So remember even one test case after pretest pass is sufficient to kill you temporarily :(. Thanks for the beautifully designed problems in the contest :)

»
9 лет назад, скрыть # |
← Rev. 4  
Проголосовать: нравится +7 Проголосовать: не нравится

My submission in Java for problem D gets TLE on test 32. Am I missing something? http://codeforces.me/contest/919/submission/34773421

Edit: Somehow this submission of mine gets AC :P http://codeforces.me/contest/919/submission/34778206

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Great Contest! I did not realise a brute force solution would pass in B and ended up coding and debugging a DFS :P Anyways, a nice lesson for the future.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

Why i have a time limit exceded In my C submisiorn C++11 compiler and why i have accepted in c++14 compiler??

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

So what is the problem with the D's 15th test case?

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Hi, I'm not sure if this is the place to put it but please re-evaluate my solutions for contest 919. The system claims that neutron-byte/34741180 is too similar to czommerfelds/34745389. The solution is very simple so it is no surprise it would be similar. Also the first result on Google for "c++ sum of digits" yields the exact same function http://www.sanfoundry.com/cpp-program-display-sum-of-digits/. Thank you. Best, Christian

»
9 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +8 Проголосовать: не нравится

With all due respect I didn't like the contest that much ... the reason is mostly because problems D and E were not a challenge and this increases the expectation for problem F , and 'F' was only hard to code and didn't have that much theoretical beauty in my opinion Though I surely hope the next rounds jinlifu1999 would come up with will be much better :)