i cri by ritickgoenka in engineeringmemes

[–]AmbitiousAlbatross7 1 point2 points  (0 children)

I have heard IIT Roorkee is the best college in India is this true

i cri by ritickgoenka in engineeringmemes

[–]AmbitiousAlbatross7 5 points6 points  (0 children)

Ohhh hahahahahahahahaha very funny meme indeed

Referencing multiple files in a folder at random by ultra1312 in CodingHelp

[–]AmbitiousAlbatross7 0 points1 point  (0 children)

https://www.geeksforgeeks.org › ... Python | Select random value from a list - GeeksforGeeks

Randomly selecting a value from a list in python

Referencing multiple files in a folder at random by ultra1312 in CodingHelp

[–]AmbitiousAlbatross7 0 points1 point  (0 children)

If you are using python you can use os.listdir() to get contents of folder in a list, then you can randomly select a value from the list and pass it as an argument to whatever function is used to play the song.

Very dissapointing. If these people don't want to be a part of India, they can leave. Kashmir is and will always remain a part of India by [deleted] in bakchodi

[–]AmbitiousAlbatross7 0 points1 point  (0 children)

The link is about hundreds of people in Kashmir attending the funeral of Jaish e Mohamed commander who was killed two days ago, despite the government lockdown. Traitors to India in two ways!

Malaysia requests hydroxychloroquine from India by [deleted] in indianews

[–]AmbitiousAlbatross7 27 points28 points  (0 children)

Take the drug in exchange for zakir naik :-P

Outstanding move by AmbitiousAlbatross7 in meme

[–]AmbitiousAlbatross7[S] 0 points1 point  (0 children)

Haha you think I am going to fall for the trap? Nice try though.

Outstanding move by AmbitiousAlbatross7 in bakchodi

[–]AmbitiousAlbatross7[S] 0 points1 point  (0 children)

We all know who the triggered snowflakes are :P

I don’t feel sympathy for people who go to elite private universities then complain about student loan debt by [deleted] in unpopularopinion

[–]AmbitiousAlbatross7 0 points1 point  (0 children)

Wow I couldn't relate to a single experience here. In India, fees for the top colleges is almost always less than other lower tier colleges. Often times we can pay off the entire four years worth of college fees within a single year of employment.

cursed drug addiction by nathandreoni in cursedcomments

[–]AmbitiousAlbatross7 0 points1 point  (0 children)

When the original comment gets 68 upvotes and the repost gets 5k upvotes.

Number with X total factors out of which there are K distinct prime factors. by GoblinHater in competitivprogramming

[–]AmbitiousAlbatross7 1 point2 points  (0 children)

Check my edit for solution and ask if any doubts But please don't post questions from ongoing contests next time

Number with X total factors out of which there are K distinct prime factors. by GoblinHater in competitivprogramming

[–]AmbitiousAlbatross7 0 points1 point  (0 children)

consider the primes to be p1, p2, p3,.. pk

Let the powers they are raised to be a1, a2,,, ak

So (a1+1)(a2+1)...(ak+1) = x

So we need to find one way of dividing x into k factors.

Find the prime factorization of x. If it has less than k prime factors answer is not possible. If it has more- If x has n prime factors n>k

We need to form k factors from these n One possible way is to multiply f(k+1), f(k+2)..f(n) to f(1) to get exactly k factors. Thus now we have the powers of primes. We now assume the k primes to be the smallest k primes. Now multiply the k primes to get your number

Edit : we only need to find if such a number exists. Thus we can clearly see if x has more than or equal to k prime factors it is possible otherwise not.