El sábado, 27 de abril de 2019, 9:38:51 (UTC+2), Prem Bharwani  escribió:
> I am not familiar with any programming languages except for C++ . And I am 
> not completely understanding how to use the testing tool provided as it is 
> something in python . 
>  Here's what i tried to do so far:
> 
>  I copied the testing-tool '.py' file to the 'Show test code' ; selected the 
> lower pane language as Python 2 ; and the top pane consiting my solution in 
> C++ (selected the language as 'C++'.
>  After hitting 'Run Tests' I got a TLE verdict , Now i don't understand a few 
> things here :
> 1) On what Input was this executed ?
> 2) How can I run my code over the input given by me?
> 
> Hope I was able to convey my thought correctly. 
> Thank you for your time ! 
> :)

The Input is inside the python code (testing_tool.py) and it can be located and 
modified without being knowing much of python. The exact format of the input 
depends on each problem but it's typically in a variable called CASES. For 
example, in the Golf Gophers problem it's in lines 18-19:

CASES = ([1, 2, 3],
         [1, 2, 3]) # fill in your own cases

This input means that both visible set (line 18) and hidden set (line 19) will 
execute the same 3 tests. Now say you to add an additional test in the visible 
test that consists of 10 gophers. You can change the code (directly in the 
lower right panel) into this:

CASES = ([1, 2, 3, 10],
         [1, 2, 3]) # fill in your own cases

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/f447ccbb-f8ea-4265-ad2e-1e20bfe544d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to