Skip to content

Commit 062e42f

Browse files
committed
feat(cf-run): Add option to run on gym contests
1 parent 3905f48 commit 062e42f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bin/cf-run

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,20 @@ parser.add_argument(
4040
help="Timeout for program in seconds, -1 for no time limit (default: 10)"
4141
)
4242

43+
parser.add_argument(
44+
'-g',
45+
'--gym',
46+
action='store_true',
47+
help="If true open gym contest instead of regular contest. (default: false)"
48+
)
49+
4350
args = parser.parse_args()
4451
args.timeout = None if args.timeout == -1 else args.timeout
4552

4653
title, time_limit, memory_limit, sample_tests = codeforces.problem.get_info(
4754
args.contestId,
48-
args.index
55+
args.index,
56+
gym=args.gym
4957
)
5058

5159
print(title)

0 commit comments

Comments
 (0)