Task: | Alien Invasion II |
Sender: | Haapsaari |
Submission time: | 2019-05-25 15:30:06 +0300 |
Language: | Python2 |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.04 s | details |
#2 | ACCEPTED | 0.04 s | details |
#3 | ACCEPTED | 0.03 s | details |
Code
x = int(input()) #def f(x): # for i in range(1, 10): # if int(x + i * 10 ** len(str(x))) % 3 == 0: # return x + i *10 ** len(str(x)) #x = f(x) x = x + (3-x%3) * 10 ** len(str(x)) print(x) print("%i %i" % ( 3, x/3 ))
Test details
Test 1
Verdict: ACCEPTED
input |
---|
2368469234876449 |
correct output |
---|
22368469234876449 3 7456156411625483 |
user output |
---|
22368469234876449 3 7456156411625483 |
Test 2
Verdict: ACCEPTED
input |
---|
292929292929292929292929292931 |
correct output |
---|
129292929292929292929292929293... |
user output |
---|
129292929292929292929292929293... |
Test 3
Verdict: ACCEPTED
input |
---|
292929292929292929292929292979 |
correct output |
---|
129292929292929292929292929297... |
user output |
---|
129292929292929292929292929297... |