| Task: | Alien Invasion II |
| Sender: | suchoale |
| Submission time: | 2020-09-19 13:15:08 +0300 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | RUNTIME ERROR |
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.07 s | details |
| #2 | RUNTIME ERROR | 0.07 s | details |
| #3 | RUNTIME ERROR | 0.07 s | details |
Code
from utils import *
def solve(input):
list_digits = [int(d) for d in str(input)]
total = sum(list_digits)
d = total % 3
if d is not 0:
list_digits.insert(0, 3-d)
value = int("".join([str(v) for v in list_digits]))
print(value)
print("{} {}".format(min(3, value//3), max(3, value//3)))
if __name__ == '__main__':
solve("13")
Test details
Test 1
Verdict: RUNTIME ERROR
| input |
|---|
| 2368469234876449 |
| correct output |
|---|
| 22368469234876449 3 7456156411625483 |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
from ut...Test 2
Verdict: RUNTIME ERROR
| input |
|---|
| 292929292929292929292929292931 |
| correct output |
|---|
| 129292929292929292929292929293... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
from ut...Test 3
Verdict: RUNTIME ERROR
| input |
|---|
| 292929292929292929292929292979 |
| correct output |
|---|
| 129292929292929292929292929297... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 1, in <module>
from ut...