結果

問題 No.544 Delete 7
ユーザー surprise_tanakasurprise_tanaka
提出日時 2018-12-03 13:48:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 213 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-07-01 05:36:57
合計ジャッジ時間 3,516 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

import random
N = int(input())
while True:
    A = random.randint(-N,N)
    if "7" in str(A):
        continue
    B = N - A
    if "7" in str(B) or B < -(10**9) or B > 10**9:
        continue
    break
print(A,B)
0