r/codeforces • u/Front_Resolution_760 Pupil • Jan 22 '26
query Python LGM!!!
Found out about this account right now called "conqueror_of_tourist" (not me haha I'm like 1200-something)
they use python and are currently rated 2928 (almost LGM, and they've been LGM many times!)
27
u/DxNovaNT Jan 22 '26
Well you have to know a lot of work around in Python through. Like StringIO, FastIO, memoryview, etc, which I found through out my journey. Even I still find crazy optimizations like slicing is faster in python compared to loop (I don't know the internals). If you know these tricks then you can solve ig.
2
u/alucard_tapes Jan 22 '26
can you make a list of things you learnt please?
1
u/vanadous Jan 23 '26
Not to dismiss you, but you can read that guys submissions?
1
u/alucard_tapes Jan 23 '26
well there are some tricks that you dont apply in every single problems like fastIO. I've learnt a huge deal in my journey using python. like .join() gives O(n) while concat gives n². .zip() also gives n².... I've learnt this from trial and error. So its better to get advice from someone who actually been through a lot
24
u/The_Mighty_Joe_781 Jan 23 '26
I think its natural progression after c++, except recursion python can do most of the stuff fast, All the function like len, etc are written in C and that is wrapped in python syntax, Ultimately it boils down to figuring out optimal solution fast, language was never the constraint, just verbosity varies language to language,
23
u/6Enma_9 LGM on New Year Jan 22 '26
Yeah he is a well known dude. I remember watching conqueror_of_tourist vs tourist in the blitz cup I think. Fun stuff.
Anyone know his original name tho? There's no shot it always was "conqueror of tourist".
6
u/overhauled_mirio Expert Jan 22 '26
I remember him early on in 2015. It was conqueror of tourist back then too. Tourist has just been so dominant for so long
9
u/Immediate_Breath_282 Jan 22 '26
Well i also code in python and seeing this make me smile and jealous as well:)
7
u/NijatHatamli Jan 22 '26
First time I used Python then I saw many people is using c00 that's why i changed but I have no idea why i made such decision. I know cpp faster than python but we can still manage it
5
12
3
u/Mightyo_o Jan 23 '26
I wanna ask something I just started in python and am 1100 rated, I have encountered a couple questions which exceed the time limit in python like there was one which had a O(nlogn) soln which only worked on cpp. Any tip anyone?
11
u/Ok-Economics-1928 Expert Jan 23 '26
You would need to learn some extra libraries as you progress in problem difficulties. It would resolve those issues. But I still recommend learning cpp for this purpose even though I am a python guy
15
u/Saturnox Jan 22 '26
Why is this so crazy? If you know how to use Python correctly in a Comp Programming setting (e.g. not using recursion), isn't writing Python even faster? Just curious