-
Notifications
You must be signed in to change notification settings - Fork 6
PrintCase
EROUI Abdelaziz edited this page Jan 14, 2021
·
1 revision
egor printcase
or egor pc
allow you to print a given test sample in the current egor task. The number of the test case to print is required and its 0 indexed, for example if you have 4 cases then the first case will have id 0 and the last case will have id 3.
The command accepts two flags:
-
--input-only
: to only print the input of the sample case. -
--output-only
: to only print the output of the sample case.
You only can set one of the two flags.
$ egor pc 0
Input
================================================================================
3
1 2 3
Output
================================================================================
6
$ egor printcase --input-only 1
Input
================================================================================
3
4 5 6
$ egor printcase --output-only 1
Output
================================================================================
15
$ egor pc 2
Could not find test case with id = 2
$ egor pc --input-only --output-only 1
only --input-only or --output-only should be set.