Submission #3290187

Source Code Expand

Copy
n = input()
s = ""
for a in n:
    if a == '9':
        s += '1'
    elif a == '1':
        s += '9'
    else:
        s += a

print(s)

Submission Info

Submission Time
Task A - AtCoder Beginner Contest 999
User showyou41
Language Python3 (3.4.3)
Score 100
Code Size 145 Byte
Status
Exec Time 17 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1_119.txt, sample2_999.txt
All 100 / 100 pigeonhole_191.txt, sample1_119.txt, sample2_999.txt, testcase_111.txt, testcase_191.txt, testcase_199.txt, testcase_911.txt, testcase_919.txt, testcase_991.txt
Case Name Status Exec Time Memory
pigeonhole_191.txt 17 ms 2940 KB
sample1_119.txt 17 ms 2940 KB
sample2_999.txt 17 ms 2940 KB
testcase_111.txt 17 ms 2940 KB
testcase_191.txt 17 ms 2940 KB
testcase_199.txt 17 ms 2940 KB
testcase_911.txt 17 ms 2940 KB
testcase_919.txt 17 ms 2940 KB
testcase_991.txt 17 ms 2940 KB