Task: | Alien Invasion II |
Sender: | bigint bugaa |
Submission time: | 2019-05-25 11:13:04 +0300 |
Language: | Python3 |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.04 s | details |
#2 | ACCEPTED | 0.05 s | details |
#3 | ACCEPTED | 0.04 s | details |
Code
n = int(input()) mult = 10 tmp = n while tmp > 0: tmp //= 10 mult *= 10 if n % 3 == 0: n = n + mult * 3 elif n % 3 == 1: n = n + mult * 2 elif n % 3 == 2: n = n + mult * 1 print(n) print(str(n//3) + " 3")
Test details
Test 1
Verdict: ACCEPTED
input |
---|
2368469234876449 |
correct output |
---|
22368469234876449 3 7456156411625483 |
user output |
---|
202368469234876449 67456156411625483 3 |
Test 2
Verdict: ACCEPTED
input |
---|
292929292929292929292929292931 |
correct output |
---|
129292929292929292929292929293... |
user output |
---|
102929292929292929292929292929... |
Test 3
Verdict: ACCEPTED
input |
---|
292929292929292929292929292979 |
correct output |
---|
129292929292929292929292929297... |
user output |
---|
102929292929292929292929292929... |