| # | 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 |
|
0
. |
|
0
someone famous proved that there are unprovable facts |
|
0
great book that teaches you how to solve problems similar in nature to the aforementioned problem: https://www.softouch.on.ca/kb/data/Art%20and%20Craft%20of%20Problem%20Solving%203E%20(The).pdf got it from: https://mirror.codeforces.com/blog/entry/101561?#comment-901775 |
|
0
that wont work for every problem you come across |
|
0
|
|
0
lets say x=16 y=3 k=1, clearly we are left with x=17 lets say x=16 y=3 k=3, 16->17->2->1, and x became <y the idea is: after every deletion x decreases from what it was originally even if it increased a little before getting to a multiple of y. and if x always decreases then after some time it must go to 1, after that it loops from 1 to y. |
|
+3
prove? |
|
0
We need to count the number of strings which have the pattern as a substring. So the strings would have the given form: s1+PATTERN+s2 (+ concatenation). Now we just need to count the different ways we can make s1 and s2 using the letters A-Z, depending on their size. Now lets see how their size depends on Q(i). let: the indexes begin from 1 m1=|s1| m2=|s2| (|string|=size of string) m = |PATTERN| n = |the whole string| then for each Q(i) => m1 = (i-1) +1 (from index 1 to the first index of the pattern) => m2 = n-m1-m Now lets see how many unique strings we can make with size k and 26 unique characters. For the first position we have 26 options, for the second 26 and for the i position 26 options. Then we multiple like such: 26*26*26... }k times = 26^k (you can think of it like picking a lock, the number of different combinations can be computed similarly) Now we just compute for each Q(i): (26^m1)*(26^m2) and add up the result. And that's our answer. |
|
+3
Maybe the number of people that solved the problem during the round would help determine the difficulty. The first thing that comes to mind is to use the cf api, I actually made a script a while back for this but there may be a better way to accomplish this. |
|
0
I would go for something like this: Lets define Q(i) to be a string with the pattern as substring at the i-th position. Now all you have to do is to count the sum of variations possible for the i-th Q(i) if we only replace the characters not belonging to the pattern. It's more like a math problem if you ask me (combinatorics). Sorry if I had made a mistake or you didn't understand my suggestion. |
|
0
Can you recommend a website to practice math related problems? |
|
+5
Congratulations! I am so happy for you. |
|
0
|
|
0
same |
|
-13
I don't care either |
| Name |
|---|


