diff options
author | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-02 16:14:24 +0200 |
---|---|---|
committer | Martin <martin@leo.fri1.uni-lj.si> | 2015-10-02 16:14:24 +0200 |
commit | 4e7b80974d7433f96fa1908293e5faee9d8de519 (patch) | |
tree | 9137c6a2fb801a7f0527530f0909976e39728ef6 /python/problems/while_and_if/competition | |
parent | df229fbab5f8cf2b310bc44e1501f03149fceb65 (diff) |
Removed unnecessary HintSequences.
Diffstat (limited to 'python/problems/while_and_if/competition')
-rw-r--r-- | python/problems/while_and_if/competition/common.py | 9 |
1 files changed, 7 insertions, 2 deletions
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 = [ |