| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | Radewoosh | 3415 |
| 8 | Um_nik | 3376 |
| 9 | maroonrk | 3361 |
| 10 | XVIII | 3345 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
|
On
ch_egor →
Codeforces Round #657 (Div. 2, based on All-Russian olympiad in the name of Keldysh) [Rated], 6 years ago
+30
Meanwhile real ch_egor |
|
On
ch_egor →
Codeforces Round #657 (Div. 2, based on All-Russian olympiad in the name of Keldysh) [Rated], 6 years ago
+62
ch_egor ping |
|
-10
What is wrong with F? (Except a quite long statement) |
|
+2
Let’s imagine this situation. You gave every segment some number 1..k, such there are no intersecting segments with the same number. In this case you can easy maintain dp. When we try to add new segment, we take some remaining color to match it to this segment (you have mask of free colors). So we came back to previous situation. |
|
On
ch_egor →
Editorial of Codeforces Round #594 (on the problems of Moscow Team Olympiad), 7 years ago
0
You should split 2n-2 items. Two smallest will be start and finish. |
|
0
It can be solve by easy dp. dp[i][j] — number of such coloring, if last j colors are equal. |
|
0
You should look on case when n = 1. It will help to understand whole problem. |
|
On
ch_egor →
Codeforces Round #583 (based on Olympiad of Metropolises) (div. 1 + div. 2), 7 years ago
0
The probability that you will fail on both numbers at the same time is extremely low. Moreover, 1e9 + 11 isn't prime. |
|
On
ch_egor →
Codeforces Round #583 (based on Olympiad of Metropolises) (div. 1 + div. 2), 7 years ago
0
You should use more than 1 prime number to hash the number of ways. |
|
On
cdkrot →
Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 7 years ago
+3
You are absolutely right!) |
|
On
cdkrot →
Editorial of Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 7 years ago
+73
Thanks, you made my day |
|
On
cdkrot →
Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 7 years ago
+3
Let’s look on some correct splitting. What changes then we cut some line? Some next cuts will split set of rectangles in two parts with empty one. All those cuts should be deleted. After deleting correctness doesn’t change. |
|
On
cdkrot →
Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 7 years ago
0
You can change set into list or 2 stacks and this solution will work in O(n log n). |
|
On
cdkrot →
Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 7 years ago
+6
Let’s optimize dividing. When we are finding cut, we do it in O(number rectangles in one part). Let’s go in 4 directions in one time and cut min part. Also, when we found cut, we should erase one part and keep correct orders in 4 directions. We can do it using stack or list. This solution works in O(n log n). (We gave here TL from the original contest, where you can solve this problem with python.) (Sorry, more details will be in editorial) |
|
On
cdkrot →
Codeforces Round #567 (based on All-Russian olympiad in the name of Keldysh), 7 years ago
+42
You can hack easy version only if you solved hard. |
|
+3
The same. 100000001 doesn't work |
|
+3
100000001 doesn't work |
|
+17
Let’s look on stack of increasing values of dp. Then we count the new value, we need to get the minimum element on the segment, that element should be in the stack, we can go from top and search for it. But this solution is O(m**2). Let’s notice that we can erase elements if we find reachable element earlier. So we can keep in stack only optimums. That gives us O(m). |
|
+18
Answer: |
|
+3
But it was... |
|
+6
min(x[i] + y[j], x[j] + y[i]) = min(y[j] — x[j], y[i] — x[i]) + x[i] + x[j] a[i] = y[i] — x[i] a[j] = y[j] — x[j] min(x[i] + y[j], x[j] + y[i]) = min(a[i], a[j]) + x[i] + x[j] |
|
+23
min(x[i] + y[j], x[j] + y[i]) = min(y[j] — x[j], y[i] — x[i]) + x[i] + x[j] |
|
-22
I gonna die if i would set more ... С = 0.3 |
|
+23
Also this test Real answer is "YES", but his answer is "NO". |
|
+11
You should use sqrt-blocks. Here is sample for 17. [17] [13 14 15 16] [9 10 11 12] [5 6 7 8] [1 2 3 4] |
|
+8
Let's get all sizes of groups of equal numbers (using unordered_map). All sizes <= 1e5, so we can sort (O(n)). Answer is the cyclic shift (in sorted array of number). For all values of cyclic shifts we can calculate answer using sorted array of sizes. |
|
+5
correct answer is 51 |
|
-8
Is it ok, that score for problem is not the sum of max score for every group? The final score for each subtask will be the maximum score of this subtask across all submissions. The score for each task will be sum of scores for its subtasks. (http://ioi2017.org/contest/rules/) |
|
0
2,2,2,2 2,2,2,1,1 2,2,1,1,1,1 2,1,1,1,1,1,1 1,1,1,1,1,1,1,1 |
|
+34
3 in a row |
|
+97
|
|
+148
Russian team:
|
|
On
voidmax →
Editorial Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1 + Div. 2) , 8 years ago
0
So we can use only ones and twos. |
|
On
voidmax →
Editorial Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1 + Div. 2) , 8 years ago
0
"Then we can replace all maximum numbers with twos and the rest we split into ones and weight will be the same." So [4, 4, 2, 1] equivalent to [2, 2, 1, 1, 1, 1, 1, 1, 1] |
|
On
voidmax →
Editorial Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1 + Div. 2) , 8 years ago
+3
q = fastow(b * fastpow(a, MOD-2) % MOD, k) |
|
On
voidmax →
Editorial Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1 + Div. 2) , 8 years ago
0
Z contains only k elements, so you can calculate in complexity O(k) |
|
0
a·b = 1 b = ap - 2 |
|
+3
1e9 + 9 is the prime number so you can use Fermat's little theorem. |
|
0
You can calculate first block in complexity O(K + log(A + B). First calculating |
|
+19
Thanks :3 |
|
+8
Please, wait for editorial, i'm preparing it now. |
|
+5
nope, a = 1 / (p — b) and k = 2, so (b/a) = -1 and (b/a)**k = 1 |
|
+13
1e9+6=(5e8+3)*2 (two prime numbers) |
|
+10
I can generate the test, then k devide (p — 1). |
|
+10
Try a = b or a = p — b |
|
0
Thanks :3 |
|
+10
|
|
+31
http://mirror.codeforces.com/blog/entry/58959?#comment-425616 With 1e9 + 9 I can generate more “smart” tests. |
|
+10
|
|
+4
1e9+9 is prime number |
|
0
|
|
0
a = p — b |
|
+15
fixed |
|
+51
D WA99 <3 |
|
+8
B->AC->AAB->AAAC->C C->AB->AAC->AAAB->B when B ~ C A->BB B->AB AAA->'' before B we can make A, add 'kill' AAA, so we can make any number of A so when we take substring we interested in count of B and count of last A and then where some easy cases (you can look in my code, after system testing) |
|
+66
|
|
+71
The Russian team:
|
|
0
f(n) — complexity of sum dfs with n nodes. m <= 26, sum(s_i, i <= m) = n — 1, f(n) = max(sum(f(s_i)) + m * min(s_i)) if (m = 1) f(n) = 1 let's prove f(n) = n log2 n if (max(s_i) <= n / 2):
else:
|
|
+5
for each level O(len(h)), sum(len(h)) = n |
|
-40
So let's prove asymptotic O(26 * n). 2 vertex have merged, so they won't be merge again. So my solution works 26 * O(count of merges). |
|
+38
NBHEXT stoped working, did anyone else have the same problem? |
|
On
Baba →
CodeCraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) Announcement, 9 years ago
+62
61 84 129 162 170 190 227 239 247 251 272 292 312 344 352 355 363 365 386 415 420 433 442 443 466 |
|
On
Baba →
CodeCraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) Announcement, 9 years ago
-13
"The seed will be the score of the first place in the tomorrow" So if there are two people with the same ranks, score will be the same. |
|
On
Baba →
CodeCraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) Announcement, 9 years ago
0
mp[x] += i+'0'; i can be big (> 256), so your solution incorrect. |
|
On
Baba →
CodeCraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) Announcement, 9 years ago
+13
| every hour update the page with this blog... |
|
+5
|
|
0
It will show answers below your comment, changing rating and etc |
|
0
You can, i'm using it on Mac Os with Jar Launcher. |
|
-8
I use stupid solution (n**2)q and it got accepted. |
|
+1
Yes |
|
+1
My really easy solution: |
|
+43
Also today’s DIV1 E was actually the same like this problem http://informatics.mccme.ru/moodle/mod/statements/view.php?chapterid=714#1. You just needed to add two more cycles. |
| Name |
|---|


