CSES - HIIT Open 2019 - Results
Submission details
Task:Alien Invasion II
Sender:Game of Nolife
Submission time:2019-05-25 11:15:46 +0300
Language:Python3
Status:READY
Result:ACCEPTED
Test results
testverdicttime
#1ACCEPTED0.05 sdetails
#2ACCEPTED0.05 sdetails
#3ACCEPTED0.05 sdetails

Code


s = input()

su=0

for c in s:
    su = su + int(c)

x=0

if su%3 == 0:
    x=int(s)
elif su%3 == 1:
    x=int("2"+s)
else:
    x=int("1"+s)
print(x)
print(str(x//3) + " 3")

Test details

Test 1

Verdict: ACCEPTED

input
2368469234876449

correct output
22368469234876449
3 7456156411625483

user output
22368469234876449
7456156411625483 3

Test 2

Verdict: ACCEPTED

input
292929292929292929292929292931

correct output
129292929292929292929292929293...

user output
129292929292929292929292929293...

Test 3

Verdict: ACCEPTED

input
292929292929292929292929292979

correct output
129292929292929292929292929297...

user output
129292929292929292929292929297...