I was coding for a particular problem whose time limit was 2 seconds.. The no. of input was max 300000. Simply taking in the number using cin and outputting the same number with cout will take more than 2 seconds.
Any ideas on how to increase efficiency??
catchmrbharath 0 Light Poster
ArkM 1,090 Postaholic
s_sridhar 7 Junior Poster
siddhant3s 1,429 Practically a Posting Shark
ArkM 1,090 Postaholic
tux4life 2,072 Postaholic
catchmrbharath 0 Light Poster
ArkM 1,090 Postaholic
lss123 19 Newbie Poster
siddhant3s 1,429 Practically a Posting Shark
Narue 5,707 Bad Cop Team Colleague
siddhant3s 1,429 Practically a Posting Shark
Narue 5,707 Bad Cop Team Colleague
ArkM 1,090 Postaholic
catchmrbharath 0 Light Poster
ArkM 1,090 Postaholic
MosaicFuneral 812 Nearly a Posting Virtuoso
s_sridhar 7 Junior Poster
s_sridhar 7 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.