From 4e7b80974d7433f96fa1908293e5faee9d8de519 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 2 Oct 2015 16:14:24 +0200 Subject: Removed unnecessary HintSequences. --- python/problems/while_and_if/competition/common.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'python/problems/while_and_if/competition') diff --git a/python/problems/while_and_if/competition/common.py b/python/problems/while_and_if/competition/common.py index a7471df..fff96ed 100644 --- a/python/problems/while_and_if/competition/common.py +++ b/python/problems/while_and_if/competition/common.py @@ -2,7 +2,7 @@ from python.util import has_token_sequence, string_almost_equal, \ string_contains_number, get_tokens, get_numbers, get_exception_desc -from server.hints import Hint, HintSequence +from server.hints import Hint id = 192 group = 'while_and_if' @@ -19,9 +19,14 @@ print('Vsota:', vsota) ''' hint_type = { - 'plan': HintSequence('plan', 1), + 'read_before_while': Hint('read_before_while'), + 'while_clause': Hint('while_clause'), + 'printing': Hint('printing'), + 'summation': Hint('summation'), + 'nonumber': Hint('nonumber'), } + def test(python, code): # List of inputs: (expression to eval, stdin). test_in = [ -- cgit v1.2.1