Hi, I am eager to know How to Find the Optimal Strategy When First See a Game Problem?
For example, CodeTON #2 Problem F Colouring Game, how do you know "start by taking RB/BR parts" is the smartest move, before you see the editorial?
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3821 |
3 | Benq | 3736 |
4 | Radewoosh | 3631 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3388 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
Hi, I am eager to know How to Find the Optimal Strategy When First See a Game Problem?
For example, CodeTON #2 Problem F Colouring Game, how do you know "start by taking RB/BR parts" is the smartest move, before you see the editorial?
When I do construction problems, I am always unable to find the entrance from which I can find the solution in the tutorial. It seems to me that the tutorial methods are just 无中生有(created out of thin air). How can I find them too?
Hello everyone! After endless debugging, I finally got AC on all the samples and submitted my code of F — Bear and Chemistry. However, it got Wrong Answer on test #63(which is not a hack, but a big case with n=300000,m=300000,q=100000
!), and there are 77 testcases in all(which means I have passed a major part of them)!
I am pretty exhausted now. I wonder if any one of you experienced programmers can share with your approach in tackling this kind of thing. I would be most grateful!
Note: Don't get me wrong, I was not asking for you to debug my code.
Hi CF users. Me is needing help with CF1530F Bingo.
In fact, my solution is able to pass the first two samples, but WAs on the third where $$$n\ge 3$$$.
Yet I am not able to find a mistake in my method, which is narrated as follows:
This is my code. Will you help me?
As known, there is a "smart_indent" option in Sublime Text. However I have recently found this intent option un-smart when I wanted to change the style of indentation.
E.g., when I type a
for(int i=1;i<=n;i++)
cin>>a[i];
I'd prefer
for(int i=1;i<=n;i++)cin>>a[i];
But the "smart_indent" option would do this↓ when I change into my preference of the sentence:
for(int i=1;i<=n;i++)cin>>a[i];
int x;
I mean it would still insert a tab when I press "Enter". Worse yet, if I backspaced that tab and finish the second line and press enter again, the third line would backspace a tab automatically.
That's really annoying isn't it, so I switched off the smart_indent option, wishing it would no longer produce that tab.
However, things get worse. Nothing would happen when I enter the second line, but a tab would still be backspaced on the third line!
Confused, I came here for advice: What should I do?
Hi. The tutorial said that the total time complexity of the solution is $$$O(n^2)$$$, but there seems to be 2 layers of "for"s in each turn of "dfs", which seems to be $$$O(n^3)$$$. Though it must be less than $$$O(n^3)$$$, could anyone please analyse detailedly of the problem? THX!
My first solved-problem on Codeforces.
It's really an easy problem.
As we know, if you want to make the a and b as small as possible, they must only contain digits 0 and 1.
So, we have the thinking in the following:
However, if we make a[i] 1, the number a must be larger than b as a fact.
So, we would not want to make array a still bigger. So after we make a[i] 1, we have different thinking:
That's all. We'll discover that after we make a[i] 1, a does not increase anymore, but b is increasing, however it will never be bigger than a.
Thanks for reading, hope that'll help you!
Название |
---|