summaryrefslogtreecommitdiff
path: root/python/problems/while_and_if/competition/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/problems/while_and_if/competition/common.py')
-rw-r--r--python/problems/while_and_if/competition/common.py9
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 = [