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

Автор ODT, история, 8 лет назад, По-английски

Hello, Codeforces!

We are glad to invite you to participate in Codeforces Round #449 (both Div. 1 and Div. 2) which will be held on December 2, 17:05 MSK.

There are seven problems, created by webmaster, ODT, dogther.

This round is about the happiest girl in the world — Chtholly Nota Seniorious~!

You will help Chtholly, Nephren, Ithea and Willem (characters in the great novel and anime "What Do You Do at the End of the World? Are You Busy? Will You Save Us?") to solve some problems.

(Image by gin_sei56(・.8・) on pixiv)

This round is our first round on Codeforces.

Thanks to zcyskyaa for helping us, Arpa, cyand1317 and Tommyr7 for testing the round, vintage_Vlad_Makeev and KAN for round coordination and MikeMirzayanov for Codeforces and Polygon platforms.

This round has 5 problems in each division and you have 2 hours to solve them.

The scoring will be announced shortly before the start of the contest.

The contest is rated for both Div. 1 and Div. 2 contestants.

It's recommended for both divisions to read through the Interactive Problems Guide before the round.

Wish everyone high rating and accepted submissions!

Upd: Scoring is 500-1000-1500-2000-2500

Upd2: Congratulations to the winners:

Div 1:

  1. MrDindows

  2. bmerry

  3. krismaz

  4. Shik

  5. ainta

Div 2:

  1. blatuitorulmlc

  2. lumibons

  3. Starlit

  4. Grevozin

  5. lyoz

The editorial will be posted soon.

Upd3: Editorial

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

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

Auto comment: topic has been updated by ODT (previous revision, new revision, compare).

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

Looks like an interesting round!

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

Sounds like a poisonous round.

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

Why it isn't in the main page? UPD: It's now :D

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

Chtholly is good!

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

The happiest girl in the world!

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

Wish everyone enjoys the round and few bugs! And hope all the programs will be fast in practice :D

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

Chtholly is invading Codeforces... And, I really don't want a math contest! PLS!

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

No tricks please

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

Auto comment: topic has been updated by ODT (previous revision, new revision, compare).

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

Auto comment: topic has been updated by ODT (previous revision, new revision, compare).

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

ke jiao xing guo(

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

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

Interactive Guide — Div 2 I am comming back :D

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

Hope not to meet five data structure problems...

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

Data Structures Round? Very interesting! But I hope there will be less data structures problem. :)

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

I can't read the annoucement again...

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

Фалунь Дафа хорош!

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

Is Chtholly rated?

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

What a Taiwan Round

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

Dear ODT, why not to darw chtholly with me? It will be fun, my dear friend!

»
8 лет назад, скрыть # |
Rev. 5  
Проголосовать: нравится -107 Проголосовать: не нравится

Some interesting IDs belonging to ODT upvote this annoucement...

But I prefer to practice FalunDafa rather than take part in this round!

В конце концов, Чжэнь Шань Жэнь это единственный критерий для оценки хорошего или плохого человека.

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

Chtholly is good! hope the contest will be the same as usual. also hope everyone high rating!

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

Could you resize the image to be a bit smaller? It looks really weird on the front page.

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

DULIU mcfx HENTAI lxl

I will never participate in a DS round! (emmm... and I advise ODT to prepare for National Higher Education Entrance Examination in a hurry (wu
»
8 лет назад, скрыть # |
Rev. 8  
Проголосовать: нравится +3 Проголосовать: не нравится

Chtholly Nota Seniorious!

orz krydom ,upstairs ↑.

Chtholly Nota Seniorious

こんなにも、たくさんの幸せをあの人に分けてもらった
だから、きっと
今の、私は
谁が何と言おうと
世界一、幸せな女の子だ

I think this contest will be very interesting!

But "Is Chtholly rated?"

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

another weeaboo garbage jesus fuckign christ what happened to this website

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

zcy!!! is he the man who has hung and beaten the trained team ? %%%%

I like this round of contest

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

I think too many big images and words in animes appearing in the contest will make me feel #%#$@^(&#! when I solve problems.

I hate people who put big image of Chtholly everywhere!

死宅真恶心

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

ODT YOU NOT YELLOW MATE

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

Love this Anime and LN so much :> Hope everyone high rating and have fun coding :>

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

Looking forward to such a 'colourful' contest!
Well, except troublesome Data Structures.

Uh, I'm wondering if there will be big pictures in desciptions of problems.

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

Again these shitty anime pictures covering the whole screen...

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

Yet another anime round,but with DULIU problem setters...

But cheerful with Chtholly :)

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

I think its not good to use Interactive Problem because many Div. 2 contestants. don`t know it for me i didn't see it before

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

I love these anime rounds :D

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

I also like animes

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

Wow anime round ! what could be better!

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

Wish round will be without system errors! And of course, wish problems will interesting and enjoyable ...)

Wish everybody high rating and good mood for night after contest!
»
8 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

lxl(aka. nzhtl1477, ODT) is really a toxic tumor!

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

Oh look, another anime that every weeb have watched it except me. Somehow people really like to recommend this anime but I am so triggered by it's title so I skipped it because of it's title is literally longer than my cumbersome comment.

PS: Weebs are taking over ICPC in EC in case if you don't know

(full login password: I love Megumi, Google Megumi Kato)

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

Hope everyone will have fun with Chtholly in this round~ P.S. I love Nephren forever!

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

I like this contest! Maybe I'll participate in it.

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

The amount of discussion on this thread is growing faster than exponential running time! :O

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

Yeee, anime round, we all were missing it.

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

An anime round?

Or a lxl data structure round?

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

glhf

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

On one hand, data structure problems are nice, but on the other hand, we have interactive...

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

Hope the network is good tomorrow. The server was down for several times this week.

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

How to solve D? I used binary search + FFT but it was TLE.

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

But seriously, why most of light novel need to have a ridiculously long title? This, Moshidora and Oreimo each seems like they have about 50++ characters in their title >_<

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

V I R A J

M A D D U R

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

It seems to be an unsolvable round?

Five difficult data structure problems!

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

这这这……what is this? 好像混进了什么东西。

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

How to solve Div1 A? I code for 10KB but got WA.

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

How to solve Div.1 F? It's a challenging problem with a 30s time limit. :(

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

How to sovle Div1C with block dividing algorithm? I got TLE over and over again.

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

 Observe in the dark

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

Deleted

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

Let's wish Good Luck codeforces servers)

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

CONTEST: Omae wa mou shindeiru!
ME: NANI?

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

What's up with this weird discussion going on? Is ODT bad problem setter? Can you guys link me to some of his contests? This is really interesting.

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

if u r a true anime fan u should watch boku no pico great anime with intresting plot

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

Every 3rd round on codeforces since I have joined is unrated due to some tech issues. I am scared today :p

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

Long queue for anyone else?

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

welp, guess i'm doing something else of my afternoon than a codeforces round...

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

Lol this will probably be unrated

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

6-minute-queuing (until the moment I write this comment). Last time I started to complain about queuing issue, it subsided a few minutes later. Hope it will work this time as well :<

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

30+ pages of queue? How is anyone supposed to time manage like this :/

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

37 pages queue...

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

No server problems so far but the queue is just as bad!

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

In queue = unrated pls

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

Long queue. Submitted B 20 minutes ago and still no verdict

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

Submitted B 20 minutes ago and only now I get a response that I missed it. This is pretty unfair and I request it becomes unrated.

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

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

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

The math says system testing will finish before pretest :-P

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

Seems fair that chtholly might win the contest

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

nearly 40 pages queue, should I continue the contest or not? :P

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

I'll go watch WorldEnd while waiting for the queue .__.

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

The nice problemset was simply ruined because of the queue :/

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

Unrated

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

Unrated again ?

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

Maybe unrated Sad :(

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

What are you doing at the beginning of codeforces round449? Are the judger busy?Will it judge our submissions of this contest?

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

After 40 minutes I got my verdict Wrong Answer ! And after re-submitting when I will get my verdict ? After the contest ends?

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

I submitted 1st question in 9 min and got a score of 488 and after 2 min it was reduced to 428. Can anyone explain why? All the pretests passed and the total score was still 470 and yet they gave me 428?

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

I won't save a poisonous problem setter even if I'm not busy at all :(

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

Dear codeforces, please hire some good engineers . those who can manage your servers

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

Did you know that 55 is not only the fifth palindrome number with 2 digits, but it is also THE NUMBER OF PAGES IN THE QUEUE?

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

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

I just waited 30 minutes to find wrong answer verdict

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

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

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

Oh this is just great. (35 minutes waiting for that verdict)  And also this one. "Working on"? — I guess it should be an unrated announcement instead...

UPD: Seemed like many people's opinions are going to the void.

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

Waiting for round getting declared unrated and Mike's apology blog

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

Was testing system replaced by a group of Chinese? :)

Btw, problems are very good.

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

I got a friendly advice to make a standalone blog instead, but couldn't delete the original message, because it was too old.

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

I think we will need BigInteger queue, because long queue will overflow :'D

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

It seems to be unrated :(...So sad to hear about it...

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

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

The announcement should be "This contest is unrated!"

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

I have lost hope to solve the problem. Because of [unsigned long long] queue and the HARD problem(Div.1) :(

But, it seems to be unrated?

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

And here's another unrated contest -_-

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

The girl in the post is shedding tears because of the loooooooong queue...

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

i think that the end of the queue is at the end of the world...

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

Unrated please; the server problems this contest are much, much worse than last contest, and the last contest was unrated, so this one should be too.

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

It's not the first time such long queues on Codeforces, it's time to buy normal servers. And yes, the round should have been unrated

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

Dear Mike Mirzayanov,

I think it's time to announce this round unrated because of failing to fix the issue with the judging machine. It's 11-12 pm in some time zone and it's time to sleep if the contest is declared unrated. Thank you for understanding us.

Best wishes.

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

Please unrate it.Getting W/A after waiting for 35 mins straight is just so frustrating.

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

What are you doing at the end of the queue? Are you busy? Will you test us?

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

This is my second codeforces round! And I will be unrated until 2018 =)

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

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

And you knew that the length of the last line in task C, is equal to the NUMBER OF ASSIGMENTS IN THE QUEUE!!!!!

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

That wonderful feeling when you submitted your solution about 50 minutes ago and now it gets RE 7. Love Codeforces servers!)

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

Round extended by 15 minutes? Do you think this will make the round any better?

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

Increase the time by merely 15 min and decrease the score like a landslide? I don't think 15 min is enough though ! This has to be unrated !!!

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

And after all this they extend the contest by 15 minutes!!! Do they still expect to make it rated??? I don't know whether to laugh or cry!!! That's damn funny!

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

In Educational Codeforces Round 33 (Rated for Div. 2) , I waited for the long queue but that round was still rated.

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

Lagforces round #449

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

I will leave CF if this round is rated.

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

вы что CF ? ?? что вы делаете разве не анрейт? афигеть

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

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

What are we going to do in 15 minutes if verdict is given after 40 minutes? -_-

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

When you are Codeforces, and have a 40+ page queue

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

:')

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

It won't be a surprise if the comments on this thread are also queued LOL!

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

Waited for 25 minutes & got WA

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

we could use this waiting time for Hacking. _/_ Codeforces.

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

too hard problems for me

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

What do you do at the end of the World? Are you busy? Will you save Codeforces?

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

damn that problem C, I know I did something wrong,but the problem feels really frustrating, like hardcoding,my eyes hurt after reading that statement "will you save us...." also was waiting long long time before verditc came "wrong answer on pretest 5" like , FUCK NO,not attempting that again after 30 minutes :(

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

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

The problems are very good . thanks to the writers . but long queue :(

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

Dear "whoever decided to extend contest by 15 minutes",

Do you really think that additional 15 minutes would make this competition fair? Or it is just some desperate attempt to make this contest rated?

If it's the first case: - no competition would be far from fair, I've been waiting about half an hour to see that my program does not work. Then I tried to fix something... guess what — I've been waiting another half an hour to see that a bug I found was not the only one. The point is — I should know what I know now max 10 minutes after my first submission (and it was 60, where are my 50 minutes?). My first concern is about amount of additional time. Why 15 minutes seems to be enough to make this contest fair? I don't feel like this is enough. The second thing is what ranking should be — is a person who get accept after X minutes at first try better or worse than person which would get accept after several trials in the first Y minutes (especially for X >> Y)? Because long testing queues affect the second one, but not the first one.

If it's the second case: please don't — just admit that it did not work out, that's what adult people do.

Sincerely, Kroma

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

The queue has disappeared... I don't know whether it's a good news or a bad one. Does it mean that the round will be rated? What a sad story... But I do think that a lot of contestants have go to bed after seeing the extremely long queue one or half an hour after the contest began. So do you think it is fair to make it rated?

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

Although the queues have been cleared but please declare the round as unrated, 1. Some of us waited for long just to get a wrong answer. 2. Many of us lost the hope to continue the contest and hence going by the past trends we already assumed that it's gonna get unrated.

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

After only 40 minutes waiting only 15 minutes ???

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

I submitted 2 solutions to problem 1 , in 9 min and in 11 min. Both got accepted and I got a penalty as well. Is it normal in codeforces or there is some malfunctioning going on? Initially I got 488 score and after 2 min it was reduced to 428. Sad :( MikeMirzayanov

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

div.2 a,b aren't good for hackers......

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

This has to be unrated... many people have lost 30+ minutes because they got WA after a super long queue.

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

Queue lag + Server lag = Unrated pls?

I even lagged out while trying to post this lol.

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

I really wonder why CF is not being open sourced ??(it's not a profit making site, right ?) .The website suffers every other round, I'm sure are many people willing to help CF.

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

Your contest is very stupid please don't repeat this awful... Your problems are unprofessional.

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

MikeMirzayanov Make it rated please ^^

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

I hope that this round won't be rated. I waited for the result for half an hour,then the Web told me that I was wrong, then I used 1 minute to fixed the bug .But it didn't work again,and I waited for another half an hour. So I used 3600 seconds to fix a bug .Time is money.We shouldn't waste our time. I'm Chinese student ,I have so much homework to do. I tried my best to save time to do the round .If the round will be rated ,not only me ,but also many other people will get very angry. (My English is not good ,I just tried my best to explain my opinion)

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

When almost everyone asking for an unrated round has performed poorly

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

I don't know what's worse: The long queues in every other round of CodeForces or the way CodeForces handles these rounds (Extending the round and keeping the participants in the dark about the contest being rated/unrated, and finally making it unrated after the contest ends — A desperate attempt to ensure that the participants take part in the contest and do not leave it midway).

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

What are you doing at the end of the queue? Are you busy? Will you test us?

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

Good problems but awful contest.

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

what is test 5 for C ?!

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

D is just https://en.wikipedia.org/wiki/Catalan%27s_triangle + compute binomial for arbitrary modulo.

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

Div 1. A. I wrote a program that kept on failing pretest 1 even though it worked on my computer. What ended up fixing it was doing my preprocessing before reading the input, which should not have changed anything. This issue took me one hour to catch since it took a good 30 minutes for the test results to get back and another 30 minutes for me to figure it out.

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

How to solve C and E?

On E I had a solution which didn't pass. Did someone pass it with such complexity? Also is there a way to solve it without SQRT decomposition?

PS: I think the round should definitely be unrated, because with such a queue it's not worth looking at the easy problems (Div. 1 A and B) as you may do a stupid bug and then be punished really hard. And so a lot of people start solving the harder problems and the chance of them failing the competition increases (for example I did so — I didn't even read B). Also a lot of people probably gave up after seeing such a queue.

PS2: The people which passed E all have the solution. The constant of my solution should really be large xD

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

for n=1; this is the string "What are you doing while sending What are you doing at the end of the world? Are you busy? Will you save us?? Are you busy? Will you send What are you doing at the end of the world? Are you busy? Will you save us??" and in this string the 194th char is 'y' but in the given test case it is 'b'! please help me if i have build the string in the wrong way please guide me!

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

Is D all about Catalan number + DP? I regret ignoring an algorithm which computes (nCi mod non-prime for all i) in O(n) time. :/

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

There is no argument defending that the round should be rated. Please make it unrated as it has affected many of the participants badly.

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

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

Unrated please dude

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

how to solve div2 B

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

when in queue ( but expecting correct answer ) : PLEASE MAKE IT RATED after getting WA : PLEASE MAKE IT UNRATED

after mains when everyone gets WA : PLEASE MAKE IT RATED

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

It would really be unfair to rate this round because many of us solved the problems faster than our submission times show; many of us submit, wait for a very long time, and find out our submission was incorrect, resulting in us losing more time than we should have. Today, the time lost was significant; some people lost up to 1 hour waiting for submissions. Personally, I lost a total of about 1 hour of time just waiting for the result of my submission (you don't know whether to continue working on a problem or not until you see the verdict), and I'm sure that many other people are in the same situation as me.

In addition, Codeforces Round 445, which happened a few weeks ago, featured servers that were awfully slow, yet still faster than today's. Given that it was still unrated, today's contest should also be unrated.

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

I learned that my solution for div1 A was wrong after waiting in queue for 45 minutes, which was in fact a minor error I made while copying and pasting a lame ass string from the problem set. It will be absolutely unfair if this round is not marked unrated. Adding 15 minutes doesn't reconcile the situation by any means.

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

how to solve div1 B?

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

How to handle N > 55 for div1 A/ div2 C? Won't this overflow 64 bit int?

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

This blog is starting to get downvotes.

I think the problems were good. The issue was in the long queue, so I don't think this blog should be downvoted

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

Hello, community!

Recent weeks I did a lot of work to improve performance and stability of the website. It seems my efforts were not in vain. Today and on the previous two rounds the website worked good.

But today we’ve encountered with long queue because of Codeforces default strategy to rerun each solution if verdict is TL in exclusive mode. On each judging machine there are ~3 invoker services which judge your solutions. Exclusive mode guarantees that at most one solution is currently running. Because of many TLs many judging machine worked de facto in single invoker mode (instead of 3 of them). Sorry for long queue. I effectively diagnosed the issue and temporarily disabled this feature (it will be “on” on the system testing).

Sorry for huge queue. During the round I did a lot of work to understand the reasons. It seems I succeeded in it. I personally promise that after website optimizations (and it seems now it is OK), my next step is to improve judging performance to eradicate such situations.

We decided to make this round rated with weight 0.5 (semi-rated). It means that all rating changes will be divided by two.

Thank you for taking part in the round. And many thanks to the writers and the coordinators!

Mike.

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

Pretests to div1 B were very weak. I passed them using solution, which could have added maximum element in the middle and then add something smaller in the end. I hope that real systests cover such bug :/

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

Which category is DIV 2C and D?

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

Div 1. C solution anyone?

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

    Bruteforce (keeping track of constant intervals in a map) works fine, because of random input and queries of type 2. After ~30 queries, we expect that all values between n/4 and 3n/4 have been set to the same value at least once.

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

      Actually, does anyone have a proof that it works? That is, can there be a malicious (N, seed) input for which this solution is really slow? Of course I also believe it should be fast, but have no strict proof. Anyone?

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

        There is a proof.

      • »
        »
        »
        »
        8 лет назад, скрыть # ^ |
        Rev. 10  
        Проголосовать: нравится +26 Проголосовать: не нравится

        Here are some quick Mathematica calculations for the limit case, after infinitely many operations (there might be a couple of off-by-ones, but you get the idea).

        merged [i_, n_] := i (n - i)/n^2
        
        splitted[i_, n_] := 2/n
        
        ps[i_, n_] := splitted[i, n]/(splitted[i, n] + merged[i, n]) // N
        
        n = 100000;
        
        Sum[ps[i, n], {i, 1, n}]
        
        Sum[ps[i, n]*2i (n - i)/n^2, {i, 1, n}] + 1
        

        We first calculate the probability that i and i + 1 are in the same interval. If we only consider the first two operations (where we actually modify things), we split i and i + 1 with probability 2 / n (given that we do operation 1 or 2, we split 2 of the n positions).

        The probability that we merge i and i + 1 is . The factor of is 1 / 2 because this only happens in the second case, 2i(n - i) is the number of pairs (l, r) where we merge i and i + 1, and n2 is the total number of pairs.

        The probability psi that i and i + 1 are not in the same interval is now given by the probability that the last event was a split.

        The expected number of intervals is just the sum of the probabilities that i and i + 1 are not in the same interval. This returns 43.

        The expected number of intervals in a given query is different, because elements close to n/2 are more likely to be in the interval. Taking this into account, the estimated number of intervals covered by a single query is only 5.

        EDIT:

        I ran some stats on my code, and it seems that the average number of intervals in a query is 8. This is because the first couple of queries will be much larger. After a 100 queries, the number of intervals is roughly 4000, and it first drops below 100 after 6000 steps.

        EDIT 2:

        If we approximate ps by and next do the summation , this is just a constant! In particular, for any n, the average number of intervals in a query is just 5!

        • »
          »
          »
          »
          »
          8 лет назад, скрыть # ^ |
          Rev. 4  
          Проголосовать: нравится +50 Проголосовать: не нравится

          Actually, I meant something different. This rnd() function is not really random, it's only pseudorandom. (And problemsetters/hackers can control the seed!) What if there is seed for which we get no type-2 operation for very long time? Even if these occur, how do we (surely) know that the input hasn't been crafted so that some early type-2 operations are applied to very short segments?

          E.g. for N=100000, seed=546202549, we have no assignment operation until 65th query. My submission processes this test in 592 ms, compared to 327 ms on systests. What if there are even worse cases?

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

            I think we can estimate that as well. The total size of the input space is 1028, so roughly 230. If we want to delay the first query of type 2 (which happens with probability 1/4), I think we should expect the worst case to be somewhere around the 60th query. That would imply your example is about as bad as it can get. At least we can be quite sure there are no cases where the first 100 queries are not of type 2.

            • »
              »
              »
              »
              »
              »
              »
              8 лет назад, скрыть # ^ |
              Rev. 3  
              Проголосовать: нравится +13 Проголосовать: не нравится

              I mean, this assumes that the generator is random (e.g. outputs random integers or generates a random permutation of all remainders mod 10^9+7), not only "looks random". (For instance, 7 is not a generator mod 10+9 + 7, which makes it a bit worse linear PRNG. Moreover, the generator has a fixed point x fulfilling . Fortunately, this x produces only type-2 operations. If it produced other types, we'd be screeeewed. Edit: actually not, I forgot this would generate a constant array.)

              I'm also "quite sure" there are no bad cases; I can't prove it, though.

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

Half the people want rated, half the people want unrated.

Makes round semi-rated

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

Wow, two of my solutions are judged after 30mins and more than 1 hours.

Rated contest. Good game.

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

How To Solve Div 2 Problem C?

  • »
    »
    8 лет назад, скрыть # ^ |
    Rev. 3  
    Проголосовать: нравится +10 Проголосовать: не нравится

    It's easy to work with n=0. With n>0, we will take this into consideration:

    The string f[n] will be divided into 5 segments: What are you doing while sending " f[n-1] "? Are you busy? Will you send " f[n-1] "?

    You can point out which segment the k-th character will lie on in the string f[n].

    If it is in segment 1, 3 or 5, the problem will be similar to the case of n = 0.

    Otherwise, turn the problem into finding the (k-seg1.size())-th character (if segment 2) or (k-seg1.size()-seg2.size()-seg3.size())-th character (if segment 4) of string f[n-1] — it's a recursive process, which stops when the character you need to find is on segment 1, 3 or 5; or the string you're working on is f[0].

    Since maximum k is 10^18, any string length higher than this value will be assigned with a self-defined "positive infinity" value. (Personally I used 4e18).

    Complexity O(n) for each query, O(q*n) for the entire problem.

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

      Can you Explain Second Part in More Details With Example

      • »
        »
        »
        »
        8 лет назад, скрыть # ^ |
        Rev. 3  
        Проголосовать: нравится +6 Проголосовать: не нравится

        Seemed like I'm getting too complex again :)) Alright.

        At first, I'll give some strings out:

        f[0] = "What are you doing at the end of the world? Are you busy? Will you save us?" — 75 characters.

        f[1] = "What are you doing while sending "What are you doing at the end of the world? Are you busy? Will you save us?"? Are you busy? Will you send "What are you doing at the end of the world? Are you busy? Will you save us?"?" — 218 characters.

        f[2] = "What are you doing while sending "What are you doing while sending "What are you doing at the end of the world? Are you busy? Will you save us?"? Are you busy? Will you send "What are you doing at the end of the world? Are you busy? Will you save us?"?"? Are you busy? Will you send "What are you doing while sending "What are you doing at the end of the world? Are you busy? Will you save us?"? Are you busy? Will you send "What are you doing at the end of the world? Are you busy? Will you save us?"?"?" — 504 characters.

        Well I did forget something. It'd be wise to save the starting index of each segment in each string f[n] (with n > 0).

        For n = 1: 5 segments' starting points are, respectively, 0, 35, 110 (or 35+75), 142 (or 110+32), 217 (or 142+75).

        For n = 2: those starting points are, respectively, 0, 35, 253 (or 35+218), 285 (or 253+32), 503 (or 285+218).

        In general, they are: 0, 35, 35+f[n-1].size(), 67+f[n-1].size(), 67+2*f[n-1].size()

        Let's work with some cases featuring n = 1.

        If k = 13, it will lie on the 1st segment. Therefore, the character we need will be the (13-0)-th character of that segment — or ' ' (whitespace in this case).

        If k = 42, it will lie on the 2nd segment. To be precise, it is the (42-35)-th, or 7th, character of that segment (which is f[0]). The character we need will be 'e'.

        If k = 151, it will lie on the 4th segment — which is, again, f[0]. To be precise, this one is its (151-142)-th or 9th character. The answer is 'y'.

        More examples with n = 2:

        If k = 61, it will lie on the 2nd segment. To be precise, it is the (61-35)-th, or 26th, character of that segment (which is f[1]).

        In the string f[1], the 26th character belongs to its 1st segment, therefore we need no further recursions. The answer in this case is 'e'.

        If k = 81, it will, again, lie on the 2nd segment. To be precise, it is the 46th character of that segment, or f[1].

        The 46th character of f[1] belongs to its 2nd segment (which is f[0]).

        In other word, the character we seek is the (46-35)-th or 11th character of f[0], which is a whitespace (' ').

        Hope all those examples help! ;)

        For your convenience, you can re-check the answer by using this site: Identify Character or Line Position — Online

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

      Since maximum k is 10^18, any string length higher than this value will be assigned with a self-defined "positive infinity" value. (Personally I used 4e18).

      How does it work? Can you explain some details?

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

        The concept behind that "positive infinity" value is: using a value higher than 1e18 (maximum k) to mark any string length longer than 1e18 characters or any segment start index higher then 1e18.

        Why marking? To avoid any undefined behaviour caused by data type.

        Like, you add 1 to a "long long" variable with value 2^63-1 (maximum signed long long value), and it immediately become -2^63

        (Well, Python users will have no worry about this part, but I still advice using it, as the number will become really huge, and there's no telling if analyzing them could even surpass the time limit of the problem.)

        To the strings with +inf value, we know that we will only care about the first 1e18 characters of it, though its true size can be a whole lot longer.

        To the segment with starting index of +inf, it means that segment is ignored, as no query would have ever reached it (its starting point is higher than any k value inputted).

        My submission for example: 32874794

        It was quite buggy when handling +inf with the "thiStart" vector (4e18 * 2 will overflow in signed int64 data type), but it had little impact, since the "secStart" vector was handled correctly.

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

      Actually, it's not O(n)

      as the size of the string gets larger so fast, it can reach 1e18, i.e. max K, within ~53 iteration, any farther computations are useless!

      so I think that each query complexity is just O(min(log(k), n))

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

'Is it rated?' is outdated. Now it is: Is it semi-rated?

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

How to solve Div1-B? Is it related to Pigeonhole theorem?

Btw, when you thought that the round will be unrated and then heard that it will be semi-rated

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

It never matters whether a contest is rated or unrated wht matters is how to solve problem C div 2.My approach was to dp the size of f-ith string.dp[i]=c+2*dp[i-1].Thats how you calculate dp[i] string size. Now you take k keep subtracting to find which segment of the string the character belongs and print it.This maybe wrong as size of dp[i]~2dp[i-1] .So size rises exponentially.So cant store sizes maybe thats where i went wrong.Help pls Problem C

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

    and they passed system tests......

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

    Study, at least in order to avoid the errors with constraints, which task author did.

    Btw, as for me, it's so obvious to solve it in O(N2), so I expected a lot of such solutions to the end of the contest, and I absolutely do not understand how the author and testers allowed this.

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

      Can you Explains the tricks you did to Pass Time Limit and your complexity is O(N^2) ?

      i'm sorry i don't get it .. thanks in advance

      • »
        »
        »
        »
        8 лет назад, скрыть # ^ |
        Rev. 3  
        Проголосовать: нравится +41 Проголосовать: не нравится

        Yes, I can.

        Tricks from my solution:

        1) Fast IO.
        2) No branching.
        3) Loop unrolling.
        4) SIMD.

        Explanation:
        1) No need to spend valuable time on slow IO.
        2) Avoid branching. May be it's hard to believe, but if (a[i] > x) a[i] -= x; may be slower than a[i] -= a[i] > x ? x : 0;
        3) Make less loop operations, i.e. less checks whether the loop ended. Also it's better to write loops like for (i = 0; i < n; ++i) or while(n--), it's like you say: "Hey, compiler, I have N loop iterations here, you may optimize them as you want."
        4) SIMD is may be used, when you can perform several loop iterations independently. I didn't used SIMD operations by myself, but with loop unrolling I showed to compiler, that it can use SIMD. Also pragma`s with -Ofast and SSE are important here.

        https://godbolt.org/g/YVDP8f — Here are some comparing of different implementations.

        It's also worth pointing out that the compiler itself can use optimizations 2-4 even without your help, Also sometimes it's like a lottery, to guess which optimizations compiler will use, and which will give more acceleration.

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

          in point 2

          can you tell me why a[i]-=a[i]>x?x:0 is not branching ?

          as far as i know it's similar to if condition

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

            We can see at godbolt that in second case compiler does the following:

            eax = a[i];
            ecx = eax
            ecx -= x
            if (eax > x) eax = ecx  // this is performed without branching with ASM instruction CMOVG
            a[i] = eax
            

            That's not exactly what I wrote, but in ternary operator instead of if I say to compiler, that it should perform subtraction in any case, but I expect that the value to subtract will be calculated from simple condition, and it can be performed with some CMOV instruction without branching. Compiler optimized my code a bit more to not use zero value, so it's like
            a[i] = a[i] > x ? a[i] - x : a[i];.

            But consider, such behavior is nowhere defined, so we can only rely on our experience or expectations. For example, clang compiler even simple loop with if (a[i] > x) a[i] -= x; optimize with SSE instructions, and it unrolls unrolled loop from my solution even more to process 16 elements of array at each loop iteration.

            Summarizing, it is necessary to understand that there are some conditions, that can be performed without branching. For example: a = cond ? b : c; or if (cond) ++val;

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

    I'm terrible sorry for this...

    I know little about computer architecture, and I haven't even imagined that a O( nm ) algorithm may pass it...

    My code uses about 800ms, in order to let some algorithms with larger constant or larger complexity pass, I set time limit to 3000ms.

    My fastest brute force algorithm uses about 5600ms, so I thought that no brute force algorithm may pass...

    I'm too naive.

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

      Well, if you didn't use any special tricks in this fastest brute-force solution they I'd say that it is quite expected that some participants managed to double the speed and pass. The gap between 5600ms and 3000ms is way too low.

      • »
        »
        »
        »
        8 лет назад, скрыть # ^ |
        Rev. 3  
        Проголосовать: нравится +5 Проголосовать: не нравится

        I used some tricks.

        The most naive brute force takes about 9000ms in the slowest test case.

        I optimized it into 5600ms, and that's the fastest I can do.

        However...I didn't know anything about pragma GCC ( In most of the contests they are banned )

        It seems that by using this can improve the speed of brute force algorithm from 5600ms to about 2500ms...

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

          how does pragma GCC commands speed up execution time ?

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

            sse, sse2, sse3, ssse3 and others are CPU extensions which allow to compute several values at once, e.g. there are commands to compute sum of 4 pairs of numbers. If you have a simple loop

            for (int i = 0; i < n; ++i)
                /* do something with a[i] */
            

            compiler can sometimes unroll it to process 4 values at once

            for (int i = 0; i < n; i += 4) {
                /* do something with a[i] */
                /* do something with a[i + 1] */
                /* do something with a[i + 2] */
                /* do something with a[i + 3] */
            }
            

            Which can sometimes be performed simultaneously using special sse instructions. By default it seems that compiler doesn't perform those optimizations, but with pragma it does.

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

    I read this the last time it happened but still couldn't think of it. RIP

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

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

I'd still like to say a thank you to the writers of today's problemset; although I was disappointed by how the contest ended up playing out, I would like to say that the problem authors still did a very good job with the problemset and wrote some very interesting problems. The issues with the servers are entirely not their fault, and I don't want them to feel that their efforts are not appreciated. Thank you, problemsetters, and I hope to see more of your problems on Codeforces in the future.

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

What is semi rated ? And where is that announcement ?

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

Hey there! I prepared a problem and I would like to share it with the community. Here goes the statement:

Uvuvwevwevwe Onyetenyevwe Ugwemuhwem Osas

Iuisdgsjhsdq is playing a game with little eastern dwarf mongooses.

She gives them an infinite array of strings, f0...∞.

f0 is "Uvuvwevwevwe Onyetenyevwe Ugwemuhwem Osas".

She wants to let more people know about it, so she defines fi =  "Uvuvwevwevwe "fi - 1" Onyetenyevwe "fi - 1" Ugwemuhwem "fi - 1" Osas" for all i ≥ 1.

It can be seen that the characters in fi are letters, question marks, (possibly) quotation marks and spaces.

Iuisdgsjhsdq will ask the little eastern dwarf mongooses q times. Each time she will let them find the k-th character of fn. The characters are indexed starting from 1. If fn consists of less than k characters, output '.' (without quotes).

Can you answer her queries?

Do you think this problem is very funny, entertaining and interesting? Share your thoughts so we can make this an even better community by expanding this innovative form of humor. After all, it makes a problem more interesting, right?

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

Чё пацаны, аниме?

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

I think at least you should let the competitor choose to remove his own participation if he is affected seriously like CF round 415.

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

Why Semi-rated?

This semi-rated thing is ***********...

Who got high score: "Why semi rated!"

Who got lower score : "Why not UnRated!"

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

CF Predictor DIV 1 DIV 2 and yeah don't forget to divide the change in ratings by 2

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

This round should be unrated, this semi-rated thing is *******...

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

I guess from next round people will start asking is it semi-rated instead of it is rated..

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

Realizations.

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

Semi-rated? What kind of joke is that? This round must be unrated. 40 min queue for a submission and then get WA! will you continue the contest? :D Btw, with such low quality contests, cf rankings are not important at all.

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

Why getting run time error on test 7 A — Scarborough Fair code: http://mirror.codeforces.com/contest/897/submission/32864871

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

В Жопу CF

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

What is semi-rated actually..??

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

I have finally had a semi-decent performance in a round only to find the round to be semi-rated

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

Ok so after waiting for about 40 minutes in queue, I decided to just go and sleep instead. Then I come back and see they actually made this contest "semi-rated". Are they accounting for the fact that people left instead of waiting for submission to stay through queue?

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

While everybody complains semi-rated contest, I found a tiny leak from 1B=2D TCs.
My code fails when m>n and c=1, but fortunately every c=1 TCs were given with m=n so that I got AC. Yikes.

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

To get rank 1 in Div.1,you just need to solve A and B efficiently,and then turn to E and quickly figure out that using computer architecture can get the problem solved.And you come first in Div.1.

(Just joking)

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

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

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

The contest is rated,no? If it's, how much time we have to wait until the rating change? P.S(I am Romanian, don't judge me).

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

What's wrong with the judge now ? Getting "Judgment Failed" when submitting at problems from this contest now...

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

MikeMirzayanov архив сломался, у половины посылок Judgement failed

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

Please stop use semi-rated. If use it once, we have to scared to p-rated(0 < p <= 1) even though contest server is completely broken. We have to fight against it and keep pushing F5 until to recover it. It's not programming contest.

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

What on earth! What kind of verdict is this?

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

please someone reply me is rated or not??

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

"We decided to make this round rated with weight 0.5 (semi-rated). It means that all rating changes will be divided by two"

I wonder what happens if someone were to have an odd value of rating change. Will they get rating changes with 0.5 now??? :)))

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

How did @moejy0viiiiiv manage to have his contest unrated?

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

It's kind of unfair to make the contest unrated for some people and semi-rated for others. If I knew the contest was rated I would have solved B (and not had gone for E), so I also feel affected by the long queue (also I had to wait some time for my A to give WA). If you want to stick with your "SEMI-rated" decision, at least apply it to everyone.

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

Seriously codeforces a queue of an hour and you are making it rated my B was in queue for ~40 minues thats why i left the contest and you made it rated.

What the hell is semi rated if you are not giving us even a chance to show that we are affected. This CF community has now become biased had never thought that things like this will happen but problem setters and cf coordinator have stopped caring about community.

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

Seriously, wtf is this!!! First educational round and now this round. I abandoned both these rounds in the middle because of some fucking server problem, which I'm not responsible for. Still I get my rating decreased.

One time is OK, but this has become a regular thing at Codeforces, really disappointing :(

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

Codeforces has new way of avoiding these server problems. Do things like making this contest rated and decrease server load for next contest by making people loose interest on cf and leave cf rounds .

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

It took 20-30 minutes for each submission to be judged so you could submit at most 4-5 codes during the contest but It's rated cause they added 15 minutes and they think they somewhat fixed the issue during the contest (they didn't or if they did it was too late) which is great banter..

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

When we can change Nickname?

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

Can someone tell me how to solve div2 E ??

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

0.5 ranking contest and 1.5 level problems!

Seems funny! Looking forward again fraction ranking contest!

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

Since the editorial is not yet out. Can anyone help me why this submission fails.

Submission

NVM, found the mistake. Thanks

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

div 1 E test cases so weak, naive solutions passed...

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

Are you seriusly?! Why this contests is rated?? Long queue, many participant leave the contest before it end, dude

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

How is 15 minutes extra justified? If I would've gotten 5 more minutes, I could've solved C and improved my rank by 600 at least. Just 15 minutes extra for 40 minutes queue is totally senseless. I want to know who decided this. Please let me know how you arrived at that number. Thanks.

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

Could you please post the editorial? It would be much appreciated. Thanks.

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

LOL @ the fake segment tree problem...

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

Also, did anyone solve E the legit way? I looked through all the submissions but it's all GCC pragmas everywhere. I thought of doing segtree with lazy BBST in each node for n log^2 n but I could not code lazy BBST at all. I would be grateful if anyone could share their implementation with me.

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

More than half of the comments are memes. I guess Codeforces became 9gag already.

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

What are you doing when the contest running? Are you busy? Will you fix the Evaluation machine?

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

Auto comment: topic has been updated by ODT (previous revision, new revision, compare).

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

How to solve Div2 D? (How to prove that solution is right?)

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

Was there problem in judgement because one of my solution for div2 C gets AC after the contest though it gave WA as verdict.

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

I dont know why i got WA in div.2 B on test 3.Your text to link here... i knew that it needs to get mirror number,but failed?

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

Where is the editorial? :)

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

How to solve Div2 D and Div2 E?

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

What was the idea of problem Div 2. Problem D "Ithea Plays With Chtholly" ?

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

What are you doing at the end of the contest? Are you busy? Will you post the editorial?

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

Auto comment: topic has been updated by ODT (previous revision, new revision, compare).

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

I'm really confused ('_') ODT .... five minutes ago my rating was restored but now its again updated :??

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

Someone please explain the Div 2E in detail. I do not understand it from the editorial

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

zcysky beat trained team!!!

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

she looks familiar