Task: | Alien Invasion II |
Sender: | Piltit |
Submission time: | 2019-05-25 11:08:02 +0300 |
Language: | Python3 |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.04 s | details |
#2 | ACCEPTED | 0.04 s | details |
#3 | ACCEPTED | 0.05 s | details |
Code
s = input(); summa = sum(map(int, s)); n = 3-(summa%3); print(str(n)+s); print(3, int("{}{}".format(n, s))//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... |