Should have won Codeforces Round 811 (Div. 3), but tourist showed up

  Рет қаралды 21,298

Neal Wu

Neal Wu

Күн бұрын

Пікірлер: 45
@kirtishghosh8950
@kirtishghosh8950 2 жыл бұрын
Did you read the first question? I was like this guy just maybe read the title and solved the question. Anyways love your videos man.
@sonit9707
@sonit9707 2 жыл бұрын
He opened it on alt monitor.
@Dev-if4fk
@Dev-if4fk 2 жыл бұрын
Everyone is 1st untill tourist arrives 😁😎😎
@amazingnature9958
@amazingnature9958 2 жыл бұрын
if you can make videos about how do. you think and approach the problems it would be quite helpful. Probably after the contests
@kamleshkumarsingh5140
@kamleshkumarsingh5140 2 жыл бұрын
Can u make a vid on how you approach such questions? Thank you
@jakubturewicz1234
@jakubturewicz1234 2 жыл бұрын
What keyboard are you using?
@tagberli
@tagberli 2 жыл бұрын
Damn this tourist guy ruining the fun, don't worry bro next time you will be top 1!!
@tanmaysingh3968
@tanmaysingh3968 Жыл бұрын
bro tourist is someone who has been the BEST in competitive programming , he won olympiad at age of 13 where everyone is 17-18
@gabut9803
@gabut9803 2 жыл бұрын
why i don't see BenQ account in codeforces? he's change username or what?
@dr.strangelove5622
@dr.strangelove5622 2 жыл бұрын
As far as I know, you cannot really change your username in Codeforces.
@nirajandata
@nirajandata 2 жыл бұрын
it's because people who don't do contest for more than 6 months, their handle won't be ranked in rated list
@achismanbanerjee8385
@achismanbanerjee8385 2 жыл бұрын
Which parser do you use?? Can anyone help me??
@josealejandrovaroncarreno1692
@josealejandrovaroncarreno1692 2 жыл бұрын
¿how i can get your answer in codeforces ?
@ievoayl324
@ievoayl324 2 жыл бұрын
Good title😂
@vaalarivan_p
@vaalarivan_p 2 жыл бұрын
problem D : 41:05
@aperson9991
@aperson9991 2 жыл бұрын
داش اونی ک دستت کیبورده یا ماشین حفاری؟
@hasanzurqa911
@hasanzurqa911 2 жыл бұрын
please tell me how can I be like you I want to learn how to be programmer
@notlinuxneverdies5846
@notlinuxneverdies5846 2 жыл бұрын
i believe you should dedicate a part of your life to cp, to be like him
@hasanzurqa911
@hasanzurqa911 2 жыл бұрын
@@notlinuxneverdies5846 Thank you for the advice, are you a programmer?
@notlinuxneverdies5846
@notlinuxneverdies5846 2 жыл бұрын
@@hasanzurqa911 I am a competitive programmer like him , tough I am far from his level
@hasanzurqa911
@hasanzurqa911 2 жыл бұрын
@@notlinuxneverdies5846 I have some questions about the job market, I would be grateful if you could answer some of my questions, do you work as a programming in the job market
@notlinuxneverdies5846
@notlinuxneverdies5846 2 жыл бұрын
@@hasanzurqa911 no , btw competitive programming and software engineering are really different things , the thing neal doing in the video is competitive programming , you can search them both to learn more about them
@RudraSingh-pb5ls
@RudraSingh-pb5ls 2 жыл бұрын
At 39:47 can any1 kindly explain the match behind calculating minutes difference between sleep time and alarm time using modulo 1440 minutes. It almost seems like a nice trick to me, though it's high school maths 😅 NOTE : I do understand why he took modulo with 1440 since a day has only 1440 minutes. But why did the subtraction work ?
@samuel.00
@samuel.00 2 жыл бұрын
It makes more sense if you phrase it as "((alarm - sleep) +1440) % 1440", with the brackets providing a bit of guidance for reading. The reason you subtract is to get the difference, however this *may* be negative in the case where the alarm is before the sleep time. Adding another day's worth of minutes, 1440, means the answer is necessarily positive (or 0), which makes the mod work as expected in C++, as noted. Taking this sum mod 1440 means you're back to being constrained to within a day. I hope this is a) correct and b) makes sense..
@RudraSingh-pb5ls
@RudraSingh-pb5ls 2 жыл бұрын
@@samuel.00 just to make the mod work as expected he could have even taken the [ abs(alarm - sleep) ] mod 1440 But he didn't do this, i know it wouldn't eventually give the right answer but still i wanna know the reason behind adding 1440 which isn't just for making this difference positive, it's something else
@alihasankhan5461
@alihasankhan5461 2 жыл бұрын
@@RudraSingh-pb5ls @Rudra Singh here's an eg: Suppose you want to find the diff in hrs between 22:00(sleep time) and 1:00(alarm) [ which is 3 hrs as we know] What do you do? alarm - sleep = -21:00 You can get ans by adding total hrs in a day in this case, -21:00 + 24:00 = 3:00 So : alarm - sleep + (total mins in a day)
@samuel.00
@samuel.00 2 жыл бұрын
@@RudraSingh-pb5ls Okay, I can see what you're missing. In the case where (A)larm is less than (S)leep, A-S is negative. Taking the abs of this value will yield the positive difference between them, the number of minutes between them. For example, if we sleep at 1800 and the alarm is at 1500, abs will give us 3hrs difference. That's not the question, though, the answer should be the sum of times 1800->0000->1500. We have a fixed starting point S, and want to know how long it'll take to get to A, moving exclusively in a positive direction, mod 1440. Adding 1440 to the sum, instead of taking its absolute value, is to turn negative times into their equivalent positive times. Adding 1440 to an already positive value results in no change once the mod is taken.
@RudraSingh-pb5ls
@RudraSingh-pb5ls 2 жыл бұрын
@@alihasankhan5461 i got that if we add 24 u get the right answer, what i asked for was why it gives us the desired answer. The math behind it
@craneology
@craneology 2 жыл бұрын
wow a video of you typing wow
@josealejandrovaroncarreno1692
@josealejandrovaroncarreno1692 2 жыл бұрын
es director de cine jajajaja no me la puedo creer
@itz_me_imraan02
@itz_me_imraan02 2 жыл бұрын
Solutions explanation would help more😕
@doofy67
@doofy67 2 жыл бұрын
He explained everything in the end
@amateursoundz6262
@amateursoundz6262 2 жыл бұрын
problem d was misplaced I believe
@helpingcoder1910
@helpingcoder1910 2 жыл бұрын
NO.
@whzd6745
@whzd6745 2 жыл бұрын
what place do you think it should be?
@amateursoundz6262
@amateursoundz6262 2 жыл бұрын
@@whzd6745 swap E and D - look at number of solves
@whzd6745
@whzd6745 2 жыл бұрын
@@amateursoundz6262 Yeah, I think D is definitely the harder one
@helpingcoder1910
@helpingcoder1910 2 жыл бұрын
@@whzd6745 The difficulty lvl of D was fine. E was relatively simpler . Authors should have made E harder than yesterday's D.
@gnet888
@gnet888 2 жыл бұрын
Numb 1
@codingmaster008
@codingmaster008 2 жыл бұрын
just one place miss for first😂
@anti4069
@anti4069 2 жыл бұрын
haha so funny (its not)
@hasanzurqa911
@hasanzurqa911 2 жыл бұрын
I am the first person to comment🔴✔🔴✔🔴✔🔴✔❤
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 102 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Я сделала самое маленькое в мире мороженое!
00:43
Это было очень близко...
00:10
Аришнев
Рет қаралды 6 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 86 МЛН
Top 5 finish in Codeforces Round 886 (Div. 4)
33:24
Neal Wu
Рет қаралды 13 М.
Coding in a Random Programming Language Everyday (Huge Mistake)
17:17
Just enough C to have fun
39:29
Kay Lack
Рет қаралды 57 М.
The Most Courageous Competitive Programmer in ICPC World Finals
8:59
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 847 М.
touristream 018: Codeforces Round 769 (Div. 2)
1:57:28
Gennady Korotkevich
Рет қаралды 69 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,2 МЛН
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 186 М.
Winning Google Kickstart Round A 2020 + Facecam
17:10
William Lin (tmwilliamlin168)
Рет қаралды 9 МЛН
Codeforces Round 862 (Div. 2) problems D-E (video editorial)
16:42
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37