Перфектни числа
- Краен срок
- 07.03.2014 23:59
Срокът за предаване на решения е отминал
Едно естествено число ще наричаме перфектно, ако е равно на сумата на положителните си делители, по-малки от него
Например, 6 е перфектно число, защото:
1 + 2 + 3 = 6
Но 8 не е:
1 + 2 + 4 = 7
Условието
Напишете функция is_perfect
, която приема int
и връща булева стойност - True
, ако подаденото число е пефектно и False
, ако не е.
Пример
>>> is_happy(6)
<<< True
>>> is_happy(10)
<<< False
Решения
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Виктория Христова
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Ивайло Бъчваров
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Васил Тодоров
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Даяна Маринова
True
False
False
True
True
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Веселин Генадиев
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Снежана Спасова
..
----------------------------------------------------------------------
Ran 2 tests in 0.011s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Момчил Станчев
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Станислав Гатев
..
----------------------------------------------------------------------
Ran 2 tests in 0.009s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Антония Чекръкчиева
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Драгомир Тунчев
..
----------------------------------------------------------------------
Ran 2 tests in 0.008s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Иван Георгиев
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стоян Цветков
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Цветелина Борисова
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Антонио Николов
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1uzcyfi/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Александър Златков
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Любомир Коев
EE
======================================================================
ERROR: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-u26gtv/test.py", line 19, in test_imperfect_numbers
self.assertFalse(solution.is_perfect(imperfect_number),
AttributeError: 'module' object has no attribute 'is_perfect'
======================================================================
ERROR: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-u26gtv/test.py", line 13, in test_perfect_numbers
self.assertTrue(solution.is_perfect(perfect_number),
AttributeError: 'module' object has no attribute 'is_perfect'
----------------------------------------------------------------------
Ran 2 tests in 0.002s
FAILED (errors=2)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Иван Бобев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Теодор Драганов
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Божидар Карааргиров
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Йосиф Цветков
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Станислав Димитров
FF
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1ub8s0t/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
======================================================================
FAIL: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1ub8s0t/test.py", line 15, in test_perfect_numbers
perfect_number))
AssertionError: None is not true : 8128 is expected to be a perfect number
----------------------------------------------------------------------
Ran 2 tests in 0.006s
FAILED (failures=2)
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Йордан Дикманов
.F
Stdout:
True
======================================================================
FAIL: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1cdqeo1/test.py", line 15, in test_perfect_numbers
perfect_number))
AssertionError: None is not true : 8128 is expected to be a perfect number
Stdout:
True
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Марио Димитров
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Димитър Желев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Марта Илиева
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Тихомир Янев
EE
======================================================================
ERROR: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-vyd466/test.py", line 19, in test_imperfect_numbers
self.assertFalse(solution.is_perfect(imperfect_number),
File "/tmp/d20140308-8332-vyd466/solution.py", line 6, in is_perfect
return reduce(lambda x, y: x + y, divisors) == number
NameError: global name 'reduce' is not defined
======================================================================
ERROR: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-vyd466/test.py", line 13, in test_perfect_numbers
self.assertTrue(solution.is_perfect(perfect_number),
File "/tmp/d20140308-8332-vyd466/solution.py", line 6, in is_perfect
return reduce(lambda x, y: x + y, divisors) == number
NameError: global name 'reduce' is not defined
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (errors=2)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Мартин Георгиев
..
----------------------------------------------------------------------
Ran 2 tests in 0.010s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Филип Митов
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Аделина Рудова
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стоянка Йовкова
..
----------------------------------------------------------------------
Ran 2 tests in 0.008s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Димитър Златев
True
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Ирина Иванова
.F
======================================================================
FAIL: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1erevqp/test.py", line 15, in test_perfect_numbers
perfect_number))
AssertionError: False is not true : 8128 is expected to be a perfect number
----------------------------------------------------------------------
Ran 2 tests in 0.004s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Ангел Цанев
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Никола Димитров
..
----------------------------------------------------------------------
Ran 2 tests in 0.010s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Людмила Савова
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Светлозар Йовчев
True
False
.F
Stdout:
True
======================================================================
FAIL: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-61u5jz/test.py", line 15, in test_perfect_numbers
perfect_number))
AssertionError: None is not true : 8128 is expected to be a perfect number
Stdout:
True
----------------------------------------------------------------------
Ran 2 tests in 0.006s
FAILED (failures=1)
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Николай Масларски
EE
======================================================================
ERROR: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-m060b6/test.py", line 19, in test_imperfect_numbers
self.assertFalse(solution.is_perfect(imperfect_number),
File "/tmp/d20140308-8332-m060b6/solution.py", line 9, in is_perfect
return number == sumOfDivisorsumOfDivisor
NameError: global name 'sumOfDivisorsumOfDivisor' is not defined
======================================================================
ERROR: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-m060b6/test.py", line 13, in test_perfect_numbers
self.assertTrue(solution.is_perfect(perfect_number),
File "/tmp/d20140308-8332-m060b6/solution.py", line 9, in is_perfect
return number == sumOfDivisorsumOfDivisor
NameError: global name 'sumOfDivisorsumOfDivisor' is not defined
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (errors=2)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стефан Василев
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стефани Цакова
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Атанас Филчев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Гергана Петрова
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Моника Димитрова
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Божидар Михайлов
..
----------------------------------------------------------------------
Ran 2 tests in 0.010s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Димитър Димитров
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1j3hx2a/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Евгени Евлогиев
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Марио Даскалов
..
----------------------------------------------------------------------
Ran 2 tests in 0.008s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Емануел Стоянов
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-3eadkh/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Димитър Мутафчиев
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Лъчезар Николов
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стефан Владков
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Елена Желева
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Моника Илиева
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Денис Бялев
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Теодора Добрева
EE
======================================================================
ERROR: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-11v03oj/test.py", line 19, in test_imperfect_numbers
self.assertFalse(solution.is_perfect(imperfect_number),
AttributeError: 'module' object has no attribute 'is_perfect'
======================================================================
ERROR: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-11v03oj/test.py", line 13, in test_perfect_numbers
self.assertTrue(solution.is_perfect(perfect_number),
AttributeError: 'module' object has no attribute 'is_perfect'
----------------------------------------------------------------------
Ran 2 tests in 0.002s
FAILED (errors=2)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Симеон Цветков
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Ангел Новоселски
.F
Stdout:
True
======================================================================
FAIL: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1ttc0qy/test.py", line 15, in test_perfect_numbers
perfect_number))
AssertionError: None is not true : 8128 is expected to be a perfect number
Stdout:
True
----------------------------------------------------------------------
Ran 2 tests in 0.008s
FAILED (failures=1)
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Йончо Йончев
EE
======================================================================
ERROR: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-ks0hqi/test.py", line 19, in test_imperfect_numbers
self.assertFalse(solution.is_perfect(imperfect_number),
File "/tmp/d20140308-8332-ks0hqi/solution.py", line 3, in is_perfect
[div.append(i) for i in range(2,n/2+1) if n%i == 0]
TypeError: 'float' object cannot be interpreted as an integer
======================================================================
ERROR: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-ks0hqi/test.py", line 13, in test_perfect_numbers
self.assertTrue(solution.is_perfect(perfect_number),
File "/tmp/d20140308-8332-ks0hqi/solution.py", line 3, in is_perfect
[div.append(i) for i in range(2,n/2+1) if n%i == 0]
TypeError: 'float' object cannot be interpreted as an integer
----------------------------------------------------------------------
Ran 2 tests in 0.003s
FAILED (errors=2)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Георги Димитров
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Константин Тодоров
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Георги Стайков
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Димитър Чаушев
.F
======================================================================
FAIL: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1usy798/test.py", line 15, in test_perfect_numbers
perfect_number))
AssertionError: False is not true : 8128 is expected to be a perfect number
----------------------------------------------------------------------
Ran 2 tests in 0.006s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Емилиан Станков
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Данаил Койчев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Венцислав Велков
..
----------------------------------------------------------------------
Ran 2 tests in 0.010s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Димитър Трендафилов
..
----------------------------------------------------------------------
Ran 2 tests in 0.008s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Евгени Кунев
..
----------------------------------------------------------------------
Ran 2 tests in 0.003s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Никола Ненков
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Елена Димитрова
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Спасимир Тупаров
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-p85erd/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.006s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Любослав Павлов
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Владимир Начев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Кирил Киров
..
----------------------------------------------------------------------
Ran 2 tests in 0.008s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Пламен Димитров
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Теодор Халваджиев
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Михаил Панайотов
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Мария Кърчева
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Славка Цанкова
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Иван Латунов
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Милица Борисова
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Ралица Цанова
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Петър Камбуров
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Деян Камбуров
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Атанас Димитров
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Веляна Димова
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Петър Парушев
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-3csgkn/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.003s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Валентин Петров
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Милен Христов
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1opx9k3/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 24 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Гено Чипилски
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Михаил Станин
..
----------------------------------------------------------------------
Ran 2 tests in 0.007s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Янислав Василев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Джована Аспарухова
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1mxfua0/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Дамян Манев
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Иван Иванов
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-j158oq/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.006s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Атанас Пройчев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Мария Кръстева
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Стоян Ефтимов
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-93au76/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.002s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стоян Христов
..
----------------------------------------------------------------------
Ran 2 tests in 0.004s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Елица Илиева
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-i5g9ox/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.003s
FAILED (failures=1)
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Мария Донева
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-1bx0b4h/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.002s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стефан Колчев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Иван Котов
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Иван Върбанов
FF
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-10g7b8b/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 24 is expected to be an imperfect number
======================================================================
FAIL: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-10g7b8b/test.py", line 15, in test_perfect_numbers
perfect_number))
AssertionError: False is not true : 8128 is expected to be a perfect number
----------------------------------------------------------------------
Ran 2 tests in 0.003s
FAILED (failures=2)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Виктор Иванов
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Стефан Маринов
..
----------------------------------------------------------------------
Ran 2 tests in 4.815s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Весела Бандова
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Дарина Кръстева
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Илиян Влахов
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-16l7x1r/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.005s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Георги Йорданов
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Некоректно
- 1 успешни тест(а)
- 1 неуспешни тест(а)
Теодор Костадинов
F.
======================================================================
FAIL: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-vrn9ha/test.py", line 21, in test_imperfect_numbers
imperfect_number))
AssertionError: True is not false : 1 is expected to be an imperfect number
----------------------------------------------------------------------
Ran 2 tests in 0.006s
FAILED (failures=1)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Беатрис Бонева
..
----------------------------------------------------------------------
Ran 2 tests in 0.006s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Велина Дойчева
..
----------------------------------------------------------------------
Ran 2 tests in 0.010s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Георги Янев
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Некоректно
- 0 успешни тест(а)
- 2 неуспешни тест(а)
Тошко Тодоров
EE
======================================================================
ERROR: test_imperfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-16v3hmt/test.py", line 19, in test_imperfect_numbers
self.assertFalse(solution.is_perfect(imperfect_number),
File "/tmp/d20140308-8332-16v3hmt/solution.py", line 3, in is_perfect
for i in xrange(1, n):
NameError: global name 'xrange' is not defined
======================================================================
ERROR: test_perfect_numbers (test.TestPerfectNumbers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20140308-8332-16v3hmt/test.py", line 13, in test_perfect_numbers
self.assertTrue(solution.is_perfect(perfect_number),
File "/tmp/d20140308-8332-16v3hmt/solution.py", line 3, in is_perfect
for i in xrange(1, n):
NameError: global name 'xrange' is not defined
----------------------------------------------------------------------
Ran 2 tests in 0.002s
FAILED (errors=2)
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Георги Антонов
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK
-
Коректно
- 2 успешни тест(а)
- 0 неуспешни тест(а)
Цветомир Цанов
..
----------------------------------------------------------------------
Ran 2 tests in 0.005s
OK