| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | maspy | 150 |
| 3 | Um_nik | 146 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 8 | nik_exists | 132 |
| 9 | Dominater069 | 131 |
| 10 | Proof_by_QED | 130 |
|
+18
Countertest After taking 5 4 we have |
|
+8
I've submitted somewhat uniformly distributed integers in range [0, 10^9]: |
|
0
Ternary search in N is ok. But you should consider all edges of triangle and run ternary searches separately for each one. Because sometimes it is better to enter into triangle from the rear side. |
|
+10
There is solution that works in Detailed analysis is quite long, but here is some hints: To achieve this complexity one should be able to compute |
|
On
sidprasad →
Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined), 10 years ago
+40
Same here. I was wondering why F is F, cause it seemed to be too easy for one of the hardest problems. Now I see that the trickiest part of the problem was "read the statement carefully and do not forget to handle corner cases" ) |
|
0
Hm. I think that everything is fine here. This line returns m!w! And we know for sure that either m = 0 or w = 0. Maybe I'm missing something ? |
|
0
Dunno. Overflow maybe? Btw, I have |
|
0
Don't know what did you mean exactly. But the solution for this problem is also a formula ;). I computed it in O(p) and didn't try to reduce the complexity and simplify: The code |
|
0
I started with counting sequences where parentheses and brackets are non-distinguishable. Then I noticed that if we fix some correct brackets sequence then we can insert parentheses sequences into it in 2x + 1 positions. In each position we can insert sequence of length li (Σ li = y), and there is catalan[li] such sequences. These considerations lead me to the easy dp to count number of ways to split y items into 2x + 1 groups, which could be computed in O(Y3logX) using matrix exponentiation. But it was too slow. Then I printed answers for different inputs and noticed that output is very familiar sequence: it was a catalan's triangle with well known formula to compute ;) |
|
+15
There is a formula for 6th task. My solution looks like this |
|
+5
There is section with Explicit solutions. My solution uses the following order of columns in backtracking search and finds solution faster than 10ms: |
|
+10
A: https://en.wikipedia.org/wiki/Eight_queens_puzzle B: instead of making reflection continue moving in the flipped (horizontally or vertically, depends on contacting border) board. So the movement of the ball is a straight line. We should check if point ( ± xc + 2x1kx, ± yc + 2y1ky) lies on this line for some integers kx and ky. I: if initial number is odd and removing last digit keeps it odd then Second player wins. Otherwise game continues until string is empty. |
|
On
MikeMirzayanov →
2015-2016 ACM-ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred), 11 years ago
+13
Assume our graph has one connected component, then we can create Hint: try to solve for a tree |
|
+13
I've got AC with O(Qlog2Q) in upsolving. So I think O(QlogN) can pass. |
|
0
Solution for this problem briefly discribed here in Russian. Anyway this might be useful. |
|
0
I had the same issue in Safari. The problem was so in my case clearing browser's local storage resolved the issue |
|
0
|
|
+8
Calculate centroid of tetrahedron and consider its projection to the surface z=0: 1) If it lies outside of triangle formed by the first 3 coordinates, then the answer is 'Falling'; 2) if it lies on the edge of triangle, then the answer is 'Unstable'. 3) if it lies strictly inside of triangle, then the answer is 'Standing' |
|
0
|
| Name |
|---|


