結果

問題 No.544 Delete 7
ユーザー Theta
提出日時 2022-10-24 19:05:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 173 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-07-02 22:09:24
合計ジャッジ時間 3,357 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    str_N = str(N)

    str_A = str_N.replace("7", "4")
    B = N - int(str_A)

    print(str_A, B)


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