cph icon indicating copy to clipboard operation
cph copied to clipboard

Creating an Empty Test Cases

Open Manad-Patil opened this issue 2 years ago • 1 comments

Can I add Empty Test cases? How can I create test cases with all the data types like list, int values because input is default string?

Manad-Patil avatar Mar 29 '22 09:03 Manad-Patil

Yes, you can add empty test cases, but you can't have a list/int of input. The default input method in competitive programming is a string. We have to convert the string input to int/list/etcetera ourselves. For example, in Python: T = int(input()) to get an integer, or arr = list(map(int, input().split())) to automatically get a list of integer from a string input of space separated numbers.

yosuanicolaus avatar Apr 21 '22 06:04 yosuanicolaus