You are not logged in. Please login at to post your questions!


TopCoder SRM 144 div 2 200

hello guys,i have just started TC and i have few doubts related to it.Please remove my doubts thanks

Doubt 1: I have seen solution of srm 144 div 2 200 and here is that solution available on net i wanted to know that why there is no main() function in c++ program but only a class

Doubt 2 : I am not getting how they returned string using stringstream..Is there any other way to return exact same thing.

Doubt 3 : How Scores are judged ?.Different peoples have different scores

asked 26 Feb '15, 11:25

doodle90's gravatar image

accept rate: 7%

edited 26 Feb '15, 11:27

Doubt 1 : On Topcoder you just need to make the class and there is no need for the main function. Also you do not need to take input from the stdin, the input will be passed as the parameters of the function. You need to do the computation and return the output. You will be provided with the required definition of the class and function.

Doubt 2 : Yes that can be done without string stream, solution in C++ 14, although string stream provide a good solution in such kind of scenario.

Doubt 3 : Scores are calculated based on the time taken to solve the problem. That is score is inversely proportional to time taken = time at which solution is submitted - time at which problem statement was opened. Read more about scoring here.

Hope it Helps!!!

Happy Coding


answered 26 Feb '15, 19:14

the65bit's gravatar image

accept rate: 13%

thanks a lot..

(16 Mar '15, 20:03) doodle902★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 26 Feb '15, 11:25

question was seen: 2,403 times

last updated: 16 Mar '15, 20:03