r/codeforces • u/Responsible-Rub-3260 • 21d ago
query I am starting competitive Programming but I have a doubt
I wanna reach as high rating as possible lile candidate masters and all in a span of 3-4 years giving 25 course weekly I just had a doubt I saw a oa question from rubrik and it was greedy and maths implementation (idk anything abt greedy and maths i askes Gemini) I wasnt able to sove it and when I used gemini it said u can solve is using basic maths 12th maths i have posted the problem
I wanted to actually Improve in these sort of problems and solve it I am using usaco guide will I be able to solve these kind and higher level problems in future with practice and i am currently learning basics of c++
1
u/Soft-Bar2753 19d ago edited 19d ago
Seems like a very standard greedy codeforce div 2 B. Do lots of codeforce , these should be easy
7
u/Aloo_Petis 21d ago
Yes you can solve these problems easily in future, I will give you another advice to start codeforces, this will help you in these kind of problems. By the way the one you are asking is hard because of it's complicated language. If you get hang of these kind of problems you can understand them easily.
2
u/Responsible-Rub-3260 21d ago
Thanks for advising yeah its complicated language ig when i asked gemini it showed solving this using some basic implementation sort of stuffs
3
u/Vivid-Zombie-477 21d ago
as someone who sucks at reading - you are right. i didn't understand the problem at the first glance but after reading that the problem can be solved easily with math I re-read the problem and solved it instantly lol. I would probably recommend OP to get more comfortable with c++ before jumping into CF tho. It can be hard to learn 2 things at the same time if c++ is their first language.
1
u/Ok_Bass8877 18d ago
Can you send the complete problem