結果

問題 No.544 Delete 7
ユーザー tamatotamato
提出日時 2020-05-18 18:40:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 1,000 ms
コード長 403 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 54,092 KB
最終ジャッジ日時 2024-04-09 21:31:41
合計ジャッジ時間 3,577 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
53,404 KB
testcase_01 AC 30 ms
52,588 KB
testcase_02 AC 31 ms
52,564 KB
testcase_03 AC 30 ms
52,196 KB
testcase_04 AC 35 ms
54,092 KB
testcase_05 AC 34 ms
53,744 KB
testcase_06 AC 31 ms
52,252 KB
testcase_07 AC 30 ms
53,552 KB
testcase_08 AC 30 ms
52,708 KB
testcase_09 AC 31 ms
53,196 KB
testcase_10 AC 30 ms
53,568 KB
testcase_11 AC 31 ms
53,008 KB
testcase_12 AC 31 ms
53,360 KB
testcase_13 AC 29 ms
52,324 KB
testcase_14 AC 30 ms
52,252 KB
testcase_15 AC 31 ms
52,576 KB
testcase_16 AC 31 ms
52,500 KB
testcase_17 AC 32 ms
52,448 KB
testcase_18 AC 30 ms
53,608 KB
testcase_19 AC 30 ms
52,324 KB
testcase_20 AC 30 ms
53,608 KB
testcase_21 AC 31 ms
52,480 KB
testcase_22 AC 31 ms
53,568 KB
testcase_23 AC 32 ms
52,768 KB
testcase_24 AC 31 ms
52,884 KB
testcase_25 AC 33 ms
52,408 KB
testcase_26 AC 31 ms
52,460 KB
testcase_27 AC 31 ms
53,284 KB
testcase_28 AC 30 ms
53,816 KB
testcase_29 AC 30 ms
52,148 KB
testcase_30 AC 30 ms
53,096 KB
testcase_31 AC 31 ms
52,564 KB
testcase_32 AC 30 ms
53,136 KB
testcase_33 AC 31 ms
52,660 KB
testcase_34 AC 31 ms
53,796 KB
testcase_35 AC 34 ms
52,604 KB
testcase_36 AC 34 ms
53,292 KB
testcase_37 AC 34 ms
53,224 KB
testcase_38 AC 34 ms
52,772 KB
testcase_39 AC 33 ms
53,788 KB
testcase_40 AC 32 ms
52,252 KB
testcase_41 AC 31 ms
53,136 KB
testcase_42 AC 36 ms
52,208 KB
testcase_43 AC 35 ms
52,944 KB
testcase_44 AC 31 ms
53,212 KB
testcase_45 AC 31 ms
53,540 KB
testcase_46 AC 30 ms
52,280 KB
testcase_47 AC 30 ms
52,816 KB
testcase_48 AC 30 ms
53,196 KB
testcase_49 AC 30 ms
53,512 KB
testcase_50 AC 30 ms
53,204 KB
testcase_51 AC 31 ms
53,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    N = input().rstrip('\n')
    A = [""] * len(N)
    B = [""] * len(N)
    for i, n in enumerate(N):
        if n == "7":
            A[i] = "1"
            B[i] = "6"
        else:
            A[i] = "0"
            B[i] = n
    print(int("".join(A)), int("".join(B)))


if __name__ == '__main__':
    main()
0