提出 #4084975


ソースコード 拡げる

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)))

提出情報

提出日時
問題 A - AtCoder Beginner Contest 999
ユーザ tayutaedomoshizu
言語 Python (3.4.3)
得点 100
コード長 314 Byte
結果 AC
実行時間 18 ms
メモリ 3064 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 9
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
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