Code for input

Do we need to write the code for input or directly for output??
like taking input from the user?

You have to take input using specifics commands like cin in C++, Scanner in Java or input in Python. For most problems in CP you have to write the complete code, ie load libraries, take input, process it and display it.

Only in problems where you are asked to make the specific function, there input is provided and you dont have to worry about input. I dont think you will find a problem like that on Codechef, its more of a GFG type thing.

Hope I answered your question.

1 Like