Great explanation, good to know the mathematical answer, I solved it using brute force during the contest, but was not feeling satisfied.
@singha5393 жыл бұрын
Could you please share your brute force code here?
@satyamsingh97993 жыл бұрын
Please share the code
@arpitpandey9923 жыл бұрын
@@singha539 There you go :) map DP; vll a{11, 111, 1111, 11111, 111111, 1111111, 11111111, 111111111}; int dp(int x) { if (x < 11) return false; if (DP.find(x) != DP.end()) return DP[x]; for (auto y : a) { if (x % y == 0) return DP[x] = true; } bool ans = false; for (auto y : a) { if (ans) break; ans = ans | dp(x - y); } return DP[x] = ans; } int main() { fastio; test { int x; cin >> x; cout
@pragatsharma15803 жыл бұрын
@@arpitpandey992 can we do any q by dp i still do not know how to do dp q can you please share how you learnt dp
@Infinity-squre10 күн бұрын
thanku bhai best explanation
@mittshah95983 жыл бұрын
The best explanation on youtube!
@asishcodes2 жыл бұрын
Thanks for this explanation
@manish_022913 жыл бұрын
bhai video q band kar di live stream kro plz
@inspired_enough_to_grow_up3 жыл бұрын
bhai nhi ho paayi thi 😫😓
@ShivamKumar-eu6mf3 жыл бұрын
Bhaiya great work you are doing , your explanations are , after seeing your explanations are uploaded , le me - " abhi mja ayega na bidu"🙂
@kassutta3 жыл бұрын
😃😃
@anupamgarg87463 жыл бұрын
@@kassutta please upload the explanations of the rest problems of the contest. Your way of explanation is amazing.
@kassutta3 жыл бұрын
@@anupamgarg8746 will try from next onwards , thanks 🙏
@adityasingh8413 жыл бұрын
Bhai bahot acha explain kiya , acha laga video
@RudraSingh-pb5ls3 жыл бұрын
What about C ?
@roshanjha90453 жыл бұрын
Bhaiya Aman bhaiya ka new video kab aaye ga
@mohdaasimqureshi71153 жыл бұрын
your video editorials are best for cf rounds
@paraslaul33073 жыл бұрын
bhai kaunsi company ka drawing tablet use krte ho?Please tell
@kassutta3 жыл бұрын
Mine is Viekk S640 but jb mane liya tha to yhi stock m tha pr isse badiya h or bhi HUION ya for WACOM, try them.
@abhaymishra30843 жыл бұрын
👌👌👌
@kushalbanda85803 жыл бұрын
Bhai, great explanation. Why don't you work with codeforces team to spread the logic or the important observation in the question after the competition, just like codechef does with it's team of coders.
@kassutta3 жыл бұрын
As a tester I can suggest them with easy solutions or a different approach but I was not a tester in this, but otherwise I don't know how to connect with them.
@abhaymishra30843 жыл бұрын
👍👍👍
@priyanshuupadhyay94333 жыл бұрын
Bhai, Can you explain what this line means ? mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());
@jaydeep-p3 жыл бұрын
Counting the time of execution right?
@akakop3 жыл бұрын
useful in calculating the time of execution. but this statement calculates time since start of epoch i.e. 00:00:00 UTC on 1 January 1970. you have to use the above statement twice to calculate execution time of a set of statements.
@learner_12283 жыл бұрын
bro,can you make a video editorial of C using dp & greedy both?
@kassutta3 жыл бұрын
I think greedy is easy i.e, It's simple greedy you can see my implementation for c2 We take every number till our score is non negative , whenever our score becomes negative we remove the negative number of highest magnitude we have taken until our score becomes positive then we repeat. And I have not thought about DP so will try.