CSES - HIIT Open 2019 - Results
Submission details
Task:Alien Invasion II
Sender:Lahna
Submission time:2019-05-25 11:10:28 +0300
Language:Python2
Status:READY
Result:ACCEPTED
Test results
testverdicttime
#1ACCEPTED0.04 sdetails
#2ACCEPTED0.04 sdetails
#3ACCEPTED0.04 sdetails

Code

s=raw_input()
sm=0
for j in s:
  sm+=ord(j)-ord("0")
c=str(6-sm%3)
l=c+s
print l
print 3, str(int(l)/3)

Test details

Test 1

Verdict: ACCEPTED

input
2368469234876449

correct output
22368469234876449
3 7456156411625483

user output
52368469234876449
3 17456156411625483

Test 2

Verdict: ACCEPTED

input
292929292929292929292929292931

correct output
129292929292929292929292929293...

user output
429292929292929292929292929293...

Test 3

Verdict: ACCEPTED

input
292929292929292929292929292979

correct output
129292929292929292929292929297...

user output
429292929292929292929292929297...