how to think for possible wrong case.its rlly hard for me to check my idea if its correct or no.ive never seen a tutorial on how to defy ur own logic

# | User | Rating |
---|---|---|

1 | tourist | 3947 |

2 | ecnerwala | 3654 |

3 | jiangly | 3627 |

4 | jqdai0815 | 3620 |

5 | orzdevinwang | 3612 |

6 | Benq | 3586 |

7 | Radewoosh | 3582 |

8 | Geothermal | 3569 |

8 | cnnfls_csy | 3569 |

10 | ksun48 | 3474 |

# | User | Contrib. |
---|---|---|

1 | awoo | 163 |

2 | maomao90 | 160 |

3 | adamant | 156 |

4 | atcoder_official | 155 |

5 | maroonrk | 153 |

6 | -is-this-fft- | 148 |

6 | SecondThread | 148 |

8 | Petr | 147 |

9 | nor | 145 |

10 | cry | 144 |

all this time i am actually trying to remember as many tricks as possible instead of trying to get it first.its like the case where a kid cant do multiplication because they dont know what it is.

an example of a trick i learned is getting total sum of input.for example we have an array

**a[5]={1,2,3,4,5}**

at first i do not know how to get the sum of the numbers of the array.eventually i searched about it on the internet.i found out that its possible by making an additional variable like int sum=0.(i found this out when i was a total newbie)

my problem is that wnever i attend a contest,i feel like the problem is very new and thus making me stuck.the problem seems very strange to me and i couldnt find a common trick to tackle the problem.and i always think my training became a waste since everytime i encounter a problem,its brand new.its no tlike a common topic like taking sum or maybe some formula.

i really need your perspective to overcome my problem

yesterday there was a div2 contest,i was pretty confident since ive trained alot.so i decided to join.

after 5 minutes,i am able to solve A with paper.i have the informal proof.and i decided to code it out.turns out it fails the second pretest.i was testing for another random tc to see whether my approach is correct.turns out my approach is correct yet im unable to solve it until the contest ends.

after the contest,i saw the editorial.the editorial is slightly different than my approach but ive done the math and it was the same.now im suspecting that c++ is actually broken.why i say? because it cant handle decimals correctly.

i think most people has a potential but theyre unable to achieve it because of broken languages like c++.maybe someone can recommend me another language thats as fast as c++ and can handle numbers correctly?

https://codeforces.com/contest/810/problem/B see this problem and see my code https://pastebin.com/U3p3vCwD

my approach: i make pair,find maximum v[i].first and then check if second is >0 then multiply it.

if u dont understand my code just try to analyze my code.i think its pretty straightforward.

im still unable to do this https://codeforces.com/problemset/problem/1146/B

someone said i need to explain my solution https://pastebin.com/f4eze85S

what i want to do:

stripg all 'a'

and then check the new string if first half is the same as second half like bcbc its the same

if yes then erase occurence in input string like abc and the occurence is bc then it should print a.

u guys said i need to train,so i train.but i cant do this.thus,help me out.

Its been 7 months since ive started learning c++ and doing cp and ive seen no progress at all.its not lack of practice.ive been solving so many problems on my main everyday.

the reason i asked about this problem is that today i encounter a problem that requires heavy implementation.at first glance,i thought,"okay,this will be a good form of practice".after several minutes thinking,i am still unable to do the problem.it took me 5 minutes or less to came up with an idea but hours or even days to think the syntax that im going to use.sometimes,there is some technique i dont know therefore i see others code and analyze.

after i analyze the code,i understand the trick.after that i do another problem.and then i cant think of the implementation again.this process continues in 7 months.i dont know if ive improved or not but u can say that im stuck on 900 rating which is absolutely terrible.

the reason i made this blog is to warn newbies that seems to stuck at a rating.i need to tell u that most advices like solving problem or doing virtual or ladders etc,will not make u improve.its useless.this is based on my observation and my own experience.

the reason i say this is because ur training is not relevant for other problems.so if u feel down or sad,get up,close your computer,and do something else that is actually useful instead of doing trash stuff.

**HUMAN DECISION MAKING**.perhaps someone can help me with this problem as i am really curious how to tackle my problem.

this is going to be a quick tutorial on binary search.

binary search is basically searching a number in O(logn).idk why someone make an algorithm just for searching a number lmao. for easy problems u can use lower_bound and upper_bound or just use binary search function so ez.harder problems require u to make some modifications on binary search so be sure to save the code in ur template so u can beat those cocky gm that tells u to google everything in solving speed.

binary search is kinda useless in higher leagues since nowadays its all about mathforces.

Codeforces (c) Copyright 2010-2024 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Aug/05/2024 23:11:54 (k2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|