Task: | Alien Invasion II |
Sender: | taige |
Submission time: | 2020-09-19 13:20:03 +0300 |
Language: | Python3 (PyPy3) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.05 s | details |
#2 | WRONG ANSWER | 0.05 s | details |
#3 | WRONG ANSWER | 0.05 s | details |
Code
def main(): k = input() s = sum([int(x) for x in k]) if s % 3 == 0: print(k) print(int(int(k)/3), 3) elif s % 3 == 1: print("2" + k) print(int(int("2"+k)/3), 3) elif s % 3 == 2: print("1" + k) print(int(int("1"+k)/3), 3) main()
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... |