B. I Hate 1111 | Codeforces Round 723 (Div-2)

  Рет қаралды 4,960

Quarantine Engineers

Quarantine Engineers

Күн бұрын

Пікірлер: 33
@arpitpandey992
@arpitpandey992 3 жыл бұрын
Great explanation, good to know the mathematical answer, I solved it using brute force during the contest, but was not feeling satisfied.
@singha539
@singha539 3 жыл бұрын
Could you please share your brute force code here?
@satyamsingh9799
@satyamsingh9799 3 жыл бұрын
Please share the code
@arpitpandey992
@arpitpandey992 3 жыл бұрын
@@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
@pragatsharma1580
@pragatsharma1580 3 жыл бұрын
@@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-squre
@Infinity-squre 10 күн бұрын
thanku bhai best explanation
@mittshah9598
@mittshah9598 3 жыл бұрын
The best explanation on youtube!
@asishcodes
@asishcodes 2 жыл бұрын
Thanks for this explanation
@manish_02291
@manish_02291 3 жыл бұрын
bhai video q band kar di live stream kro plz
@inspired_enough_to_grow_up
@inspired_enough_to_grow_up 3 жыл бұрын
bhai nhi ho paayi thi 😫😓
@ShivamKumar-eu6mf
@ShivamKumar-eu6mf 3 жыл бұрын
Bhaiya great work you are doing , your explanations are , after seeing your explanations are uploaded , le me - " abhi mja ayega na bidu"🙂
@kassutta
@kassutta 3 жыл бұрын
😃😃
@anupamgarg8746
@anupamgarg8746 3 жыл бұрын
@@kassutta please upload the explanations of the rest problems of the contest. Your way of explanation is amazing.
@kassutta
@kassutta 3 жыл бұрын
@@anupamgarg8746 will try from next onwards , thanks 🙏
@adityasingh841
@adityasingh841 3 жыл бұрын
Bhai bahot acha explain kiya , acha laga video
@RudraSingh-pb5ls
@RudraSingh-pb5ls 3 жыл бұрын
What about C ?
@roshanjha9045
@roshanjha9045 3 жыл бұрын
Bhaiya Aman bhaiya ka new video kab aaye ga
@mohdaasimqureshi7115
@mohdaasimqureshi7115 3 жыл бұрын
your video editorials are best for cf rounds
@paraslaul3307
@paraslaul3307 3 жыл бұрын
bhai kaunsi company ka drawing tablet use krte ho?Please tell
@kassutta
@kassutta 3 жыл бұрын
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.
@abhaymishra3084
@abhaymishra3084 3 жыл бұрын
👌👌👌
@kushalbanda8580
@kushalbanda8580 3 жыл бұрын
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.
@kassutta
@kassutta 3 жыл бұрын
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.
@abhaymishra3084
@abhaymishra3084 3 жыл бұрын
👍👍👍
@priyanshuupadhyay9433
@priyanshuupadhyay9433 3 жыл бұрын
Bhai, Can you explain what this line means ? mt19937_64 rng(std::chrono::steady_clock::now().time_since_epoch().count());
@jaydeep-p
@jaydeep-p 3 жыл бұрын
Counting the time of execution right?
@akakop
@akakop 3 жыл бұрын
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_1228
@learner_1228 3 жыл бұрын
bro,can you make a video editorial of C using dp & greedy both?
@kassutta
@kassutta 3 жыл бұрын
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.
@anirudhpanwar7142
@anirudhpanwar7142 3 жыл бұрын
sahi hai
@JEAnandkumar
@JEAnandkumar 3 жыл бұрын
Halat kharab kar di es bogaboo ne xD!!
@shwetadwivedi4967
@shwetadwivedi4967 3 жыл бұрын
👍👍
B. Lord of the values | Deltix Round (Div. 1 + Div. 2)
6:00
Quarantine Engineers
Рет қаралды 1,8 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
B. Prinzessin der Verurteilung | Codeforces Round-724 (Div-2)
10:04
Quarantine Engineers
Рет қаралды 3,3 М.
D. Deleting Divisors | Codeforces Round-726(Div-2)
15:08
Quarantine Engineers
Рет қаралды 3,3 М.
Problem X Solving - Day 19 -B. I Hate 1111 -( Arabic )
13:33
Atypical society
Рет қаралды 219
OpenAI's o1 just hacked the system
26:31
AI Search
Рет қаралды 238 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 410 М.
Cracked GATE with Job || Raj Jha (IISc)
9:21
Quarantine Engineers
Рет қаралды 3,1 М.
B. Nastia and a Good Array | Codeforces Round #720 | CODEFORCES
11:08
code Explainer
Рет қаралды 3,3 М.