結果
問題 | No.544 Delete 7 |
ユーザー |
|
提出日時 | 2018-02-05 16:33:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-11-21 16:44:59 |
合計ジャッジ時間 | 3,558 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
import random MAX = int(1e8) def exists_seven(v): s = str(v) for c in s: if c == '7': return True return False N = int(input()) while True: a = random.randint(0, MAX) b = N - a if (exists_seven(a)): continue if (exists_seven(b)): continue print(a, b) break