Task: | Alien Invasion II |
Sender: | Agonaudid |
Submission time: | 2019-05-25 11:13:16 +0300 |
Language: | Python3 |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.04 s | details |
#2 | WRONG ANSWER | 0.06 s | details |
#3 | WRONG ANSWER | 0.05 s | details |
Code
from sys import stdin for x in stdin: S = str(x).strip() summa = 0 for y in S: summa += int(y) a = summa%3 b = 3 - a if b == 0: print(S) else: S = str(b) + S print(S) print(int(int(S)/3), 3)
Test details
Test 1
Verdict: ACCEPTED
input |
---|
2368469234876449 |
correct output |
---|
22368469234876449 3 7456156411625483 |
user output |
---|
22368469234876449 7456156411625483 3 |
Test 2
Verdict: WRONG ANSWER
input |
---|
292929292929292929292929292931 |
correct output |
---|
129292929292929292929292929293... |
user output |
---|
129292929292929292929292929293... |
Test 3
Verdict: WRONG ANSWER
input |
---|
292929292929292929292929292979 |
correct output |
---|
129292929292929292929292929297... |
user output |
---|
129292929292929292929292929297... |