Before contest

Codeforces Round 940 (Div. 2) and CodeCraft-23

19:35:53

Register now »

Codeforces Round 940 (Div. 2) and CodeCraft-23

19:35:53

Register now »

*has extra registration

# | User | Rating |
---|---|---|

1 | ecnerwala | 3648 |

2 | Benq | 3580 |

3 | orzdevinwang | 3570 |

4 | cnnfls_csy | 3569 |

5 | Geothermal | 3568 |

6 | tourist | 3565 |

7 | maroonrk | 3530 |

8 | Radewoosh | 3520 |

9 | Um_nik | 3481 |

10 | jiangly | 3467 |

# | User | Contrib. |
---|---|---|

1 | maomao90 | 174 |

2 | adamant | 164 |

2 | awoo | 164 |

4 | TheScrasse | 160 |

5 | nor | 159 |

6 | maroonrk | 156 |

7 | -is-this-fft- | 150 |

7 | SecondThread | 150 |

9 | orz | 146 |

10 | pajenegod | 145 |

Hey!

I think it would be cool to have a place where we could compare our heuristics for different NP problems.

Evaluating one task can be done like this: Making something like 1000 tests (or more) and placing them in a zip archive. The people than download this archive and run their program at home (without any time limit). Just like Facebook HackerCup. The grading is done by the following criteria: let's say that we are dealing with the task of the maximum clique. You need to return the size of the clique and its nodes. First of all, if there is at least one test on which the returned nodes don't form a clique, your program gets 0 points. In the other case its scoring is equal to the sum of sizes of the cliques for all of the tests.

I am talking about classical NP tasks such as: maximum clique, complete coloring, minimal cover, traveling salesman aaaaaand many more!

PS: Do you know some place to "test" NP tasks heuristics that already exists? (And to be able to compare your program performance to the performance of other programs).

Hi!

I strongly consider that Competitive Programming should be promoted better. Soooo, I made an Ad:

https://www.youtube.com/watch?v=ezVXkIbYQ-s

Enjoy!

Hi!

Is there a data structure that can perform the following queries (in logaritmic time)?:

(a) for (i = 1; i <= n; i++) A[i] += B[i]

(b) given l and r perform for (i = l; i <= r; i++) B[i] = C

(c) given i, return the value of A[i]

Thanks!

Hi!

I was playing around with sorting algorithms and came up with this ideea

```
vector<int> solve(vector<int> a) {
shuffle(a.begin(), a.end(), rng);
int n = (int) a.size();
bool changes = 1;
while (changes) {
changes = 0;
for (int x = 1; x <= n; x *= 2) {
for (int i = 0; i + x < n; i++) {
if (a[i + x] < a[i]) {
swap(a[i], a[i + x]);
changes = 1;
}
}
}
}
return a;
}
```

I am wondering how many times this code goes through the while loop

Also if you think that variations of this code (like changing the order in which we go through the powers of 2) could work better please let me know.

Thanks!

Hi!

Firstly, thanks to antontrygubO_o for the epic script!

More Inside-Jokes

And a breathtaking story

Here comes "Codeforces — the REAL movie"

I love Codeforces and the codeforces comunity

So...I made a short funny movie about it :)

Enjoy!

Update: Thanks for the positive feedback, stay tuned for part 2 which will be a lot better :)

In ejoi 2019 there was a trend of stealing doors, is it normal? :))

What is the craziest thing you have done in an olympiad?

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Apr/20/2024 21:59:08 (l2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|