| # | 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 |
|
+5
Thanks to Sergey Kopeliovich, try this http://acm.math.spbu.ru/~sk1/algo/input-output/fread_write_export.cpp.html |
|
+18
Hi, have you already managed to find out how to make big tests? |
|
0
http://hsin.hr/coci/archive/2015_2016/contest4_tasks.pdf Problem "GALAKSIJA" has the same idea in it. |
|
0
Let's prove there are always only two prefixes required if it's possible. Let's say we get the answer with more than two strings: $$$s_1, s_2, ..., s_k$$$. Then we can get a string $$$s_1 + s_2 + ... + s_{k - 1}$$$ using only one prefix. So all we have to do is to find the suffix, such that it is a prefix either. You can do it using Z-function UPD: I'm quite stupid I guess |
|
On
cdkrot →
Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 7 years ago
+11
I guess ios_base with cin.tie would be enough |
|
0
On techocup site, where you have registered for this olympiad |
|
0
0 |
|
+11
There are some facts I can't prove because of my bad Englsh)) They are not very hard, but I can try to write proofs for them in Russian if you would want) It's enough. If we can put a point in ai + 1 and ai - 1, the result will be the same. So I can be wrong in a situation when we can put a point in ai - 1 but can't in ai + 1. Let's take a look at this. The points must be like ...ai - 1, ai, ai + 1(because we can't make a point at here)... Let's increase i until we find a free ai + 1. What do we get? A sequence of adjacent points. I want to say that the result will be the same if we put a point in the left of this sequence or in the right. If we don't find this i, it means there is a sequence with the end at M. in that case I say that the result will be the same if we put a point in the left or don't put at all. |
|
+3
No, I meant another thing. It's correct that making a point in a_i-1 and a_i+1 would give the same result. But sometimes it's impossible to put a point in a_i+1(like if there are points with coordinates x and x+1) |
|
0
hmm Am I wrong in the situaton when there are two adjacent points? I didn't think about it because my solution had AC |
|
0
In B that's enough to check a_i + 1 only |
| Name |
|---|


