# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
The question is this.
I went through one of the submitted solutions:
I understood that for the solution to exist C must be divisible by g = gcd(A, B);
But, how are we getting the final values for x and y ?
Also, it would be very nice if someone can suggest some nice problems to practice on this topic.
Thanks!
The problem is this
After going through the submitted solution, I found the answer is this-> w! * b! * (w -1)* C(w + b — 3, n — 3)
Can someone please explain how this solution is coming.
Thanks!
The problem is 294C.
The tutorial says this:
The third sample is ...#...#... where # is a switched on lamp and . is a switched off lamp. As you can see we have three different types of lights. The first three lights (Type A), the 5th to 8th lights (Type B) and the last three lights (Type C). We have to switch on the lights three times for each type of lights. Aside from the order of moves for each type there are possible permutations of the string AAABBBCCC which tells us how to combine the steps of different types. Switching on the lights is done uniquely for types 1 and 3. But for type 2 each time we have to possible options until we're left with one off light. So there are 2^(3 - 1) ways to do this. So the answer would be 1680*1*4*1 = 6720.
I can not understand the part. A little help would be very much appreciated.
The problem is this.
The tutorial says this:
"If a fraction can be obtained with k resistors, then it is simple to calculate that we can obtain fractions and with k + 1 resistors. So adding one resistor means performing one operation backwards in Euclidean algorithm. That means that the answer is equal to the number of steps in standard Euclidean algorithm.
At first we thought about the major problem (any two elements can be joined), but had a moment of eureka and got that the given problem unexpectedly naturally can be reduced to GCD. "
I do not understand the tutorial. A little help will be really appreciated.
Thanks!
Is it possible to solve this question using recursion + memoisation instead of bottom up approach, without exceeding the given memory limit?
In this question, DIV 2C, Is is possible to solve this using recursive approach without exceeding the memory limit??
I participated in the Google 2017 APAC Round A. I was wondering if Google releases any kind of editorial for the same or not?
Thanks!
How do I generate all the submasks for a given mask?
When will the editorial for the CROC Finals be released?
The problem is Chef and Frogs. I have solved it using DFS and I am getting a WA. Can someone please point out the error ?
My solution is My Solution
I was solving this problem -> Problem C
I went through the tutorial which says this ->
The problem was suggested by Lewin Gan lewin. The proof of the transitivity also belongs to him. Let's sort all the strings by comparator a + b < b + a and concatenate them. Let's prove that it's the optimal answer. Let that operator be transitive (so if ). Consider an optimal answer with two strings in reverse order by that operator. Because of the transitivity of operator we can assume that pair of strings are neighbouring. But then we can swap them and get the better answer. Let's prove the transitivity of operator. Consider the strings as the 26-base numbers. Then the relation a + b < b + a equivalent to . The last is simply the relation between real numbers. So we proved the transitivity of the relation a + b < b + a.
I couldn't understand a word of it. Can anyone please help ?
The problem is Almost Arithmetic Sequences.
Can someone please figure out why is this happening?
Why has Codeforces blocked access to the ProblemSet? I think it has been blocked since the last contest ended.
Why are submissions not getting checked? How long is it gonna take?
Is it something temporary or they are actually going ahead with it full time. I wish not. I kind of like the previous setitng. It would be very kind if somebody, officially with codeforces could answer this.
Name |
---|