Submission #4084975
Source Code Expand
n=int(input())
change_1_9=[]
a=n//100
b=(n-100*a)//10
c=n-100*a-10*b
if (a==9):
change_1_9.append(1)
else:
change_1_9.append(9)
if (b==9):
change_1_9.append(1)
else:
change_1_9.append(9)
if (c==9):
change_1_9.append(1)
else:
change_1_9.append(9)
print(''.join(map(str,change_1_9)))
Submission Info
| Submission Time | |
|---|---|
| Task | A - AtCoder Beginner Contest 999 |
| User | tayutaedomoshizu |
| Language | Python (3.4.3) |
| Score | 100 |
| Code Size | 314 Byte |
| Status | AC |
| Exec Time | 18 ms |
| Memory | 3064 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample1_119.txt, sample2_999.txt |
| All | 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 | AC | 18 ms | 3060 KiB |
| sample1_119.txt | AC | 18 ms | 3060 KiB |
| sample2_999.txt | AC | 18 ms | 3060 KiB |
| testcase_111.txt | AC | 18 ms | 3060 KiB |
| testcase_191.txt | AC | 18 ms | 3064 KiB |
| testcase_199.txt | AC | 18 ms | 3064 KiB |
| testcase_911.txt | AC | 18 ms | 3064 KiB |
| testcase_919.txt | AC | 18 ms | 3064 KiB |
| testcase_991.txt | AC | 18 ms | 3060 KiB |