CSES - HIIT Open 2019 - Results
Submission details
Task:Alien Invasion II
Sender:Haapsaari
Submission time:2019-05-25 13:42:23
Language:Python2
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails

Code

x = int(input())

def f(x):
    for i in range(1, 10):
        if (x + i * 10 ** len(str(x)) % 3 == 0:
            return x + i *10 ** len(str(x))


x = f(x)

print(x)
print("%i %i" % ( int(min(3, x/3)), int(max(3, x/3)) ))


Test details

Test 1

Verdict:

input
2368469234876449

correct output
22368469234876449
3 7456156411625483

user output
(empty)

Error:
File "input/code.py", line 5
    if (x + i * 10 ** len(str(x)) % 3 == 0:
                                          ^
SyntaxError: invalid syntax

Test 2

Verdict:

input
292929292929292929292929292931

correct output
129292929292929292929292929293...

user output
(empty)

Error:
File "input/code.py", line 5
    if (x + i * 10 ** len(str(x)) % 3 == 0:
                                          ^
SyntaxError: invalid syntax

Test 3

Verdict:

input
292929292929292929292929292979

correct output
129292929292929292929292929297...

user output
(empty)

Error:
File "input/code.py", line 5
    if (x + i * 10 ** len(str(x)) % 3 == 0:
                                          ^
SyntaxError: invalid syntax