diff options
author | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-10-12 14:19:07 +0200 |
---|---|---|
committer | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-10-12 14:19:07 +0200 |
commit | 0a88716110994f789f764704a96791fdfb5fa288 (patch) | |
tree | 788c16ab578cf76eda358abc1d0587503d413a87 /python/problems/lists_and_for/divisors | |
parent | 1a7678b37a25a76aeaef7ebb225f85406b19f928 (diff) | |
parent | 5a01c2bb184152c6ccc3c536e9b857d247bc55ad (diff) |
Merge branch 'master' of ssh://212.235.189.51:22122/codeq-problems
Conflicts:
robot/problems/introduction/forward/en.py
robot/problems/introduction/forward/sl.py
Diffstat (limited to 'python/problems/lists_and_for/divisors')
-rw-r--r-- | python/problems/lists_and_for/divisors/common.py | 3 | ||||
-rw-r--r-- | python/problems/lists_and_for/divisors/en.py | 1 | ||||
-rw-r--r-- | python/problems/lists_and_for/divisors/sl.py | 12 |
3 files changed, 7 insertions, 9 deletions
diff --git a/python/problems/lists_and_for/divisors/common.py b/python/problems/lists_and_for/divisors/common.py index 4f440e4..a99246b 100644 --- a/python/problems/lists_and_for/divisors/common.py +++ b/python/problems/lists_and_for/divisors/common.py @@ -6,8 +6,7 @@ from python.util import has_token_sequence, string_almost_equal, \ from server.hints import Hint id = 204 -group = 'lists_and_for' -number = 4 +number = 20 visible = True solution = '''\ diff --git a/python/problems/lists_and_for/divisors/en.py b/python/problems/lists_and_for/divisors/en.py index e98e9a7..8f4dbeb 100644 --- a/python/problems/lists_and_for/divisors/en.py +++ b/python/problems/lists_and_for/divisors/en.py @@ -1,6 +1,5 @@ # coding=utf-8 -id = 204 name = 'Divisors' slug = 'Divisors' diff --git a/python/problems/lists_and_for/divisors/sl.py b/python/problems/lists_and_for/divisors/sl.py index 5ba36e1..f79875a 100644 --- a/python/problems/lists_and_for/divisors/sl.py +++ b/python/problems/lists_and_for/divisors/sl.py @@ -3,7 +3,6 @@ import server mod = server.problems.load_language('python', 'sl') -id = 204 name = 'Delitelji' slug = 'Delitelji' @@ -74,15 +73,16 @@ hint = { 'last_number': ['''\ <p>Število deli samega sebe!</p>'''], - 'final_hint:': ['''\ + 'final_hint': ['''\ <p>Naloga rešena!</p> - <p>Dejansko ne potrebujemo pregledati vseh števil med <code>1</code> in </code>n-1</code>, - dovolj bo če gremo do kvadratnega korena od števila <code>n</code>:</p> + <p>Dejansko ne potrebujemo pregledati vseh števil med <code>1</code> in <code>n-1</code>, + dovolj bo če gremo do kvadratnega korena števila <code>n</code>:</p> <pre> -from math import sqrt +from math import * + n = int(input('Vnesi število: ')) -for i in range(1, sqrt(n)+1): +for i in range(1, int(sqrt(n)+1)): if n % i == 0: print(i, n/i) </pre>'''], |